Here's how to easily manipulate date variables to customize your chatbots even
These "magic" variables are dynamically processed on display and in
It becomes very easy to say "good evening" instead of "hello", answer that the
physical shop is closed this Sunday, but will be open next Tuesday etc ...

Here is the list of "magic" variables reserved for dates:
Minute (01...60)
Hour (01...24)
Day (01...31)
Month (01...12)
Year (1900...)
Day of the year (1...365)
Day of the week (1...7) 1 = Sunday, 2 = Monday... 7 = Saturday


Day of the week, text. (monday, tuesday...)
Period of the day. Very useful to customize the home !
1 = morning
2 = afternoon
3 = evening
4 = night


variable date

Display date in "computer" format (database): 2018/04/28
Display the date in "computer" format (database) + time: 2018/04/28 11:18
Displays the date US format: 04/28/2018
Display the date format US without the year: 04/28
Displays the date format US + time: 04/28/2018 11:18
Display date US format + time without year: 04/28 11:18
US date in text format: Friday May 4th 2018

Displays the date US format in text without the year: Friday May 4th

Display the date format EU: 28/04/2018

Display the date format EU without the year: 28/04

Display the date format EU + time: 28/04/2018 11:18

Display the date format EU + time, without the year: 28/04 11:18

Displays the date EU format in text: Friday 4 May 2018

Displays the date EU format in text without the year: Friday 4 May

Gives the current timestamp, that is, the number of seconds elapsed since January
1st 1970.
This is useful for measuring the time spent between 2 events.

We take into account the TimeZone of the user. Specifically at the same time, a
chatbot can now display "Good morning" to a French and "Good night" to a
Japanese using the magic variable {{bn_date_Period}}.

Dates are more manipulable with options!



Will return the date it will be exactly in 2 weeks.

It works on all the previous functions, like:
Which will return the date to + 25 days.

variable date

It is also possible to use the local timezone (France) Chatbot instead of that of the
user by adding _Local before the period

{{bn_date_hour}} -> User time (Japanese)
{{bn_date_local_hour}} -> Time in the timezone of the bot (support in Paris)

Very soon it may be possible to specify a specific timezone in the chatbot setup, if
this info is not present the timezone of the server (Paris) is then used.

Did this answer your question?