FORMATDATE

The FORMATDATE function formats the DateTime formatted input data to the specified string.

Input/Output

Number of Connections: 1
InputData TypeDescription
Input1DateTimeThe time data.

OutputData TypeDescription
Output1StringThe formatted input string as specified by the Format property.

Property

NameProperty TypeDescription
Formatchoice Specifies how to format the input DateTime data to a string.
You can specify the format directly except for pre-defined format. For details of format, please refer the following topic "Date and Time Patterns".
yyyy/MM/dd HH:mm:ss - Example:2006/09/27 16:36:44
yyyy/MM/dd hh:mm:ss - Example:2006/09/27 04:36:44
yyyy/MM/dd - Example:2006/09/27
ggggeeee年M月d日H時m分s秒 - Example:平成18年9月27日16時36分44秒
ggggeeee年M月d日h時m分s秒 - Example:平成18年9月27日4時36分44秒
ggggeeee年M月d日 - Example:平成18年9月27日
geeee年M月d日H時m分s秒 - Example:H18年9月27日16時36分44秒
geeee年M月d日h時m分s秒 - Example:H18年9月27日4時36分44秒
geeee年M月d日 - Example:H18年9月27日
TimeZonechoiceSpecifies the time zone.
System Timezone [(default)]
The system's default time zone is used.
(GMT) [(GMT)]
Greenwich Mean Time is used.
LocalechoiceDefines the locale.
System Locale [(default)] - The system's default locale is used.

Topic

Date and Time Patterns

It is described by combining the following letters.

SymbolMeaningMeaning
gEra nameHeisei
eYear corresponding to era name18
Gera designatorAD
yyear2003
Mmonth in yearJuly and 07
dday in month10
hhour in am/pm (1-12)11
Hhour in day (0-23)0
mminute in hour45
ssecond in minute54
Smillisecond955
Eday in weekTuesday
Dday in year145
Fday of week in month2 (2nd Wed in July)
wweek in year24
Wweek in month2
aam/pm markerPM
khour in day (1-24)24
Khour in am/pm (0-11)0
ztime zonePacific Standard Time
'escape for text
''single quote'

Example

PropertyOutput
Input120020430T12:00:00Formatyyyy/MM/dd2002/04/30
TimeZoneAmerica/New_York
LocaleUS

PropertyOutput
Input120020430T12:00:00Formatyy/M/d02/4/30
TimeZoneAmerica/New_York
LocaleUS

PropertyOutput
Input 120020401T12:00:00FormatMMMMM dd, yyyy hh:mm aaaApril 01, 2002 12:00 PM
TimeZoneAmerica/New_York
LocaleUS