This function converts a text with a certain format into a timestamp.
stringToDate(text, timeZone) #Output: Number
Variant where you can manually define the date-time pattern. Read more about date-time patterns.
stringToDate(text, dateTimePattern ) #Output: Number
Variant where you can additionally define a language and a country.
stringToDate(text, dateTimePattern, language, country ) #Output: Number
This function is mostly used when you want to write the output into a Jira date-time picker.
If you want to convert a date into a text you might want to have a look at the function dateToString().
Use cases and examples
Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
---|---|---|---|---|---|
Validation based on the value of a date type project property | |||||
Log absence time on another issue | stringToDate() |