Custom Date & Time Format Strings
  • 06 Aug 2024
  • 1 Minute to read
  • Dark
    Light

Custom Date & Time Format Strings

  • Dark
    Light

Article summary

Overview

DateTime objects within Decisions can be formatted as a string using the Parse Date With Format and Get Formatted Date steps.

The following table provides example formats and the expected output for a date when used with the above steps. 

Some of the examples contain strings with characters reserved for formatting, such as the 'M' in GMT. These strings will need to be encapsulated with double/single quotes.

For more information, please visit the following article Custom Date and Time Format Strings.
FormatOutput
MM/dd/yyyy03/29/2021
dddd, dd MMMM yyyyMonday, 29 March 2021
dddd, dd MMMM yyyy HH:mmMonday, 29 May 2021 05:50
dddd, dd MMMM yyyy HH:mm ttMonday, 29 March 2021 05:50 AM
dddd, dd MMMM yyyy HH:mm:ssMonday, 29 March 2021 05:50:06
MM/dd/yyyy HH:mm03/29/2021 05:50
MM/dd/yyyy hh:mm tt03/29/2021 05:50 AM
MM/dd/yyyy H:mm03/29/2021 5:50
MM/dd/yyyy h:mm tt03/29/2021 5:50 AM
MM/dd/yyyy HH:mm:ss03/29/2021 05:50:06
MMMM ddMarch 29
yyyy’-‘MM’-‘dd’T’HH’:’mm’:’ss.fffffffK2021-03-29T05:50:06.7199222-04:00
ddd, dd MMM yyy HH’:’mm’:’ss ‘GMT’Mon, 29 March 2021 05:50:06 GMT
yyyy’-‘MM’-‘dd’T’HH’:’mm’:’ss2021-03-29T05:50:06
HH:mm05:50
hh:mm tt05:50 AM
HH:mm5:50
h:mm tt5:50 AM
HH:mm:ss05:50:06
yyyy MMMM2021 March

Was this article helpful?

What's Next