Skip to main content

Convert format of date or time

Converts the format of a provided date and/or time format into a specific date & time format.

Common use cases

  • Data manipulation Wrkflows
  • Time management

Application

  • Date & Time

Inputs (what you have)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
Date and/or timeDate/Time to be convertedNumberYes14 02 22, 13:53
Expected formatFormat to convert the provided date/timeNumberYesMM/DD/YYYY
Current date/time formatThe current format of the provided date/timeNumberYesDD MM YY
Number of digitsThe number of digits required if converting to Unix Epoch TimestampNumberNo13 if 2022-05-01 is equivalent to 1651377600, then three more zeroes need to be added to then end of the timestamp: 1651377600000

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data Library. These variables in the Data Library are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NAMEDESCRIPTIONTYPEREQUIREDEXAMPLE
Converted date/timeConverted date/timeTextYes02/23/2022

Statuses

NAMEDESCRIPTION
SuccessThis status is selected if the date or time was successfully converted onto the specified format, and the provided link can be used to directly access the file
UnsuccessfulThis status is selected in the event of the following scenarios:- The date and time are not provided- The preferred format or current format is not provided- The instructions cannot be followed

How it works

  • Convert Date and time: 14 02 22, 13:54, into Date/Time format: mm/dd/yyyy, hh:mm
  • The specified Date and time: 14 02 22, 13:54 is then formated into the the specified format
  • The calculated result is 02/14/2022 13:54

Year Formats:

KeyDescriptionExample
yyyyYear (4 digits)2023
yyYear (2 digits)23

Month Formats:

KeyDescriptionExample
MMMMFull month nameOctober
MMMAbbreviated month nameOct
MMMonth (2 digits)10
MMonth (1 or 2 digits)10

Day formats:

KeyDescriptionExample
ddDay of the month (2 digits)16
dDay of the month (1 or 2 digits)16
JDay of the year (1 to 3 digits)289

Week Formats:

KeyDescriptionExample
FDay of the week (0 to 6)0
EEEEFull weekday nameSunday
EAbbreviated weekday nameSun
WWeek number of the year41
wWeek number of the year (1 digit)41

Hour Formats (12 Hr):

KeyDescriptionExample
hhHour (12-hour format, 2 digits)03
hHour (12-hour format, 1 or 2 digits)3

Hour Formats (24 Hr):

KeyDescriptionExample
HHHour (24-hour format, 2 digits)15
HHour (24-hour format, 1 or 2 digits)3

Minute Formats:

KeyDescriptionExample
mmMinute (2 digits)05
mMinute (1 or 2 digits)5

Second Formats:

KeyDescriptionExample
SSSMilliseconds (3 digits)123
ssSecond (2 digits)45
sSecond (1 or 2 digits)5

Timezone and AM / PM:

KeyDescriptionExample
zzzTimezoneUTC
aAM/PM indicatorAM

Requirements

  • N/A