{"id":4658,"date":"2023-07-25T10:22:19","date_gmt":"2023-07-25T08:22:19","guid":{"rendered":"https:\/\/botnation.ai\/customized-date-and-time-feedback-format\/"},"modified":"2026-01-02T15:28:34","modified_gmt":"2026-01-02T14:28:34","slug":"customized-date-and-time-feedback-format","status":"publish","type":"support","link":"https:\/\/botnation.ai\/en\/support\/customized-date-and-time-feedback-format\/","title":{"rendered":"Customized date and time feedback format"},"content":{"rendered":"<p>How to format the result for your database<\/p>\n\n\n\n<p>With the <a href=\"https:\/\/botnation.ai\/en\/capture-a-date\/\">Date and Time<\/a> function, the date and time chosen by the user can be inserted in the {{CALENDAR_CUSTOM_FORMAT}} variable in a customized format.<\/p>\n\n\n\n<p>For example, if you want the date in the form \u201c25-12-2020 at 22:15\u201d you will have to enter the following format in the<strong>\u201cCustom return format<\/strong>\u201d field:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">DD-MM-YYYY to HH:mm<\/pre>\n\n\n\n<p>where DD is the day, MM the month, YYYY the year, HH the hour and mm the minutes.<\/p>\n\n\n\n<p><strong>Year<\/strong><\/p>\n\n\n\n<p>To display the year (2020 in the following example), you have several options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>YYYY will display 2020<\/li>\n\n\n\n<li>YY will display 20<\/li>\n<\/ul>\n\n\n\n<p><strong>Month<\/strong><\/p>\n\n\n\n<p>To display the month (September in the following example), you have several options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>M will display 9<\/li>\n\n\n\n<li>MM will display 09<\/li>\n\n\n\n<li>MMM will display sep<\/li>\n\n\n\n<li>MMMM will display September<\/li>\n<\/ul>\n\n\n\n<p><strong>Day<\/strong><\/p>\n\n\n\n<p>To display the day (a Monday 8 in the following example), you have several options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>D will display 8<\/li>\n\n\n\n<li>DD will display 08<\/li>\n\n\n\n<li>DDD will display one<\/li>\n\n\n\n<li>DDD will post on Monday<\/li>\n<\/ul>\n\n\n\n<p><strong>Hours<\/strong><\/p>\n\n\n\n<p>To display the hours (22h in the following example), you have several options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>HH (in uppercase) will display 22<\/li>\n\n\n\n<li>hh (lowercase) will display 10<\/li>\n<\/ul>\n\n\n\n<p><strong>Minutes<\/strong><br>To display the minutes (11 in the following example), you have several options:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>mm (lowercase) will display 11<\/li>\n<\/ul>\n\n\n\n<p><em>Tip: If you wish to display the \u201ch\u201d in hours, add an \u201ch\u201d in square brackets: \u201c[h]\u201d. HH[h]mm will therefore display 22h11<br><\/em><br><\/p>\n\n\n\n<p><strong>Timestamp<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>X (in uppercase) will display the timestamp in seconds<\/li>\n\n\n\n<li>x (lowercase) will display the timestamp in milliseconds<\/li>\n<\/ul>\n\n\n\n<p><strong>Other<\/strong><\/p>\n\n\n\n<p>Thanks to certain formats, it is also possible to receive a ready-made date:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>L will display 05\/19\/2020<\/li>\n\n\n\n<li>LL will display May 19, 2020<\/li>\n\n\n\n<li>LLL will display May 19, 2020 12:11 PM<\/li>\n\n\n\n<li>LLLL displayed Tuesday, May 19, 2020 12:11 AM<\/li>\n<\/ul>\n\n\n\n<p><strong>Plus:<\/strong><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/capture-a-date\/\">Capture a date<\/a><br>\u2013 <a href=\"https:\/\/botnation.ai\/en\/date-variables-and-functions\/\">D<\/a><a href=\"https:\/\/botnation.ai\/en\/date-variables-and-functions\/\">ate: variables and functions<\/a><\/p>\n\n\n","protected":false},"featured_media":0,"template":"","meta":{"_acf_changed":false},"categorie-support":[194,222,221],"class_list":["post-4658","support","type-support","status-publish","hentry","categorie-support-features","categorie-support-variables-en","categorie-support-web-chatbot-en"],"acf":[],"_links":{"self":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support\/4658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/support"}],"about":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/types\/support"}],"wp:attachment":[{"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/media?parent=4658"}],"wp:term":[{"taxonomy":"categorie-support","embeddable":true,"href":"https:\/\/botnation.ai\/en\/wp-json\/wp\/v2\/categorie-support?post=4658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}