Page History
Page properties | |||||||||
---|---|---|---|---|---|---|---|---|---|
| Status | ||||||||
Tech review |
| ||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
Converts a text into a date.
Status | ||||
---|---|---|---|---|
|
Status | ||||||
---|---|---|---|---|---|---|
|
size | medium |
---|---|
type | info |
This function converts a text with a certain format into a timestamp.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
stringToDate(text, timeZone) #Output: Number |
UI Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
UI Expand | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
This function returns a
|
UI Text Box | ||||
---|---|---|---|---|
| ||||
Variant where you can manually define the date-time pattern. Read more about date-time patterns. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
stringToDate(text, dateTimePattern ) #Output: Number |
UI Expand | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||
|
UI Expand | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
This function returns a
|
Use cases and examples
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | ||
---|---|---|
| ||
UI Text Box | ||||
---|---|---|---|---|
| ||||
Variant where you can additionally define a language and a country. |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
stringToDate(text, dateTimePattern, language, country ) #Output: Number |
UI Expand | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Parser expression | Description |
Code Block | ||||
---|---|---|---|---|
| ||||
stringToDate("Dec 7, 2020 2:10:25 AM PST", "MMM d, yyyy h:mm:ss a z", "eng", "US") |
This example returns a timestamp based on the parameters provided.
title | Additional information |
---|
Parameters used in this function
text
dateTimePattern
Manually defined date-time pattern. Read more about date-time patterns.
language
country
title | Output |
---|
Short description | Converts a text into a date. |
---|---|
Output |
|
type | tip |
---|
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().
|