fbpx
Header

Knowledge Base

< All Topics

Formatting date and time will be useful for anyone who is having customers in multiple nations and regions. Because the date & time format is not the same in every place. On Botosynthesis platform, you can change the format of the date & time by your need.

Follow the steps below to know how to format date and time for your convenient:
Step 1: Go to the flow that you want edit.

Step 2: Among many options on the builder choose “Action” option and select “Format Date/Date & Time” on the list.

Step 3: Now select the option on the builder to,

  • Select the date custom field that contains the date you want to format.
  • On the next field enter the format of the date and time you need to change from the default (For example, if you want to display the date and time as “23-01-2022; 02-00 a.m” then you need to enter the format field (without quotation) as “d-m-Y; h-i a”. Refer the table below to know more about the parameters).
  • Then, create a new custom field or select the existing one to store the changed date & time format on “Save the formatted date to” field.
  • In addition, you can choose the time zone of this formatted date & time for page (or) user’s time zone.

Here is the demo link flow: Click Here

Table explaining the parameters of the date & time formats:

CharacterDescriptionValues
Day
dDay of the month, 2 digits with leading zeros
01
 to 31
D
A textual representation of a day, three letters
Mon through Sun
jDay of the month without leading zeros
1
 to 31
l (lowercase ‘L’)A full textual representation of the day of the weekSunday through Saturday
N
ISO-8601 numeric representation of the day of the week (added in PHP 5.1.0)
1 (for Monday) through 7 (for Sunday)
S
English ordinal suffix for the day of the month, 2 characters

st
ndrd or th. Works well with j
wNumeric representation of the day of the week0 (for Sunday) through 6 (for Saturday)
z
The day of the year (starting from 0)
0 through 365
Week
WISO-8601 week number of year, weeks starting on MondayExample: 42 (the 42nd week in the year)
Month
FA full textual representation of a month, such as January or MarchJanuary through December
m
Numeric representation of a month, with leading zeros
01 through 12
MA short textual representation of a month, three lettersJan through Dec
nNumeric representation of a month, without leading zeros1 through 12
tNumber of days in the given month28 through 31
Year
L
Whether it’s a leap year
1 if it is a leap year, 0 otherwise.

Table of Contents