This function creates a timestamp in milliseconds based on input values.


dateTime(year, month, day, hour, minute, timeZone) #Output: Number



Parser ExpressionDescription


dateTime(2020, 03, 01, 15, 30, LOCAL)


This example returns the timestamp of March 1st, 2020 15:30 in milliseconds.



Parameters used in this function

ParameterInput (data type)Description
year

The year as number, e.g. 2020, 2015 or 2010.
month

The month as number, e.g. 1, 5 or 12 (starting with 1 = January, ..., 12 = December).
day

The day as number.

hour

The hour in 24h format, e.g. 1, 12 or 23.
minute

The minute as number.
timeZone

The time zone used for the calculation. 



This function returns a  representing a timestamp

The output can be written into any Jira field of type Date Picker ore Date Time Picker.

Another very common use case is to use this function in one of the JWT calculated date-time fields.

This function can come in handy when trying to create custom dates without calculating them based on existing dates.




Use cases and examples



Parser function cloud
Map(question)
Notes

Workaround

new Date("2020-05-03T15:53:00")

The date must be inputted as, a string with the ISO 8601 format.






Status
Tech review

Style guide




Short descriptionCreates a timestamp based on input values.
Output

Available since

Label