Skip to content

Date Helper

Reference


Helper component for date and time manipulation.

Categories: [helpers]

Version: 1


Actions

Add Time

Add time to the date.

Properties

NameTypeControl TypeDescription
DateDATE_TIMEDATE_TIME
Date FormatSTRINGSELECTHere’s what each part of the format (eg. YYYY) means: yyyy : Year (4 digits) yy : Year (2 digits) MMMM : Month (full name) MMM : Month (short name) MM : Month (2 digits) EEE : Day (short name) dd : Day (2 digits) HH : Hour (2 digits) mm : Minute (2 digits) ss : Second (2 digits).
YearINTEGERINTEGERYears to add.
MonthINTEGERINTEGERMonths to add.
DayINTEGERINTEGERDays to add.
HourINTEGERINTEGERHours to add.
MinuteINTEGERINTEGERMinutes to add.
SecondINTEGERINTEGERSeconds to add.

Output

Type: STRING

Convert Date Timestamp

Converts UNIX timestamp to ISO8601 format.

Properties

NameTypeControl TypeDescription
UNIX TimestampNUMBERNUMBERUNIX Timestamp in seconds (10 digits) or milliseconds (13 digits)
Date FormatSTRINGSELECTFormatting that should be applied the text representation of date.

Output

Type: STRING

Date Difference

Get the difference between two dates.

Properties

NameTypeControl TypeDescription
Start DateDATE_TIMEDATE_TIME
End DateDATE_TIMEDATE_TIME
UnitSTRINGSELECTThe unit of difference between the two dates.

Output

Type: NUMBER

Extract Date Units

Extract date units (year/month/day/hour/minute/second/day of week/month name) from a date.

Properties

NameTypeControl TypeDescription
DateDATE_TIMEDATE_TIME
Unit to ExtractSTRINGSELECTUnit to extract from date.

Output

Type: STRING

Get Current Date

Get current date in the specified format.

Properties

NameTypeControl TypeDescription
Time ZoneSTRINGSELECTTime zone to use when formatting date.
Date FormatSTRINGSELECTHere’s what each part of the format (eg. YYYY) means: yyyy : Year (4 digits) yy : Year (2 digits) MMMM : Month (full name) MMM : Month (short name) MM : Month (2 digits) EEE : Day (short name) dd : Day (2 digits) HH : Hour (2 digits) mm : Minute (2 digits) ss : Second (2 digits).

Output

Type: STRING

Subtract Time

Subtract time from date

Properties

NameTypeControl TypeDescription
DateDATE_TIMEDATE_TIME
Date FormatSTRINGSELECTHere’s what each part of the format (eg. YYYY) means: yyyy : Year (4 digits) yy : Year (2 digits) MMMM : Month (full name) MMM : Month (short name) MM : Month (2 digits) EEE : Day (short name) dd : Day (2 digits) HH : Hour (2 digits) mm : Minute (2 digits) ss : Second (2 digits).
YearINTEGERINTEGERYears to subtract.
MonthINTEGERINTEGERMonths to subtract.
DayINTEGERINTEGERDays to subtract.
HourINTEGERINTEGERHours to subtract.
MinuteINTEGERINTEGERMinutes to subtract.
SecondINTEGERINTEGERSeconds to subtract.

Output

Type: DATE_TIME