Page History
UI Text Box | ||||
---|---|---|---|---|
| ||||
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
| |||||||||||||||||||||||||
Page properties | |||||||||||||||||||||||||
| Status | ||||||||||||||||||||||||
Tech review |
| ||||||||||||||||||||||||
Style guide |
|
Status | ||
---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
Status | ||||
---|---|---|---|---|
|
hidden | true |
---|
Returns a
with the date-time represented by string s Status subtle true title number
Status | ||||
---|---|---|---|---|
|
size | medium |
---|---|
type | info |
|
| The parameter must contain data in a specific format. Usually this value is retrieved from a field.
|
|
|
|
language | bash |
---|---|
title | Syntax |
linenumbers | true |
timeZone |
UI Expand | ||
---|---|---|
| ||
For a detailed example, check the following page : Validation based on a Date type Project Property |
| |||||||||||||||||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
The This function returns a
|
UI Text Box | ||||||
---|---|---|---|---|---|---|
| ||||||
The function returns a
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
stringToDate(string stext, string date_time_pattern dateTimePattern ) #Output: Number |
UI Expand | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
|
UI Expand | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||
Parameters used in this function
|
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
The This function returns a
|
UI Text Box | ||||||
---|---|---|---|---|---|---|
| ||||||
The function returns a
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
stringToDate(string stext, string date_time_pattern , stringdateTimePattern, language , string country ) #Output: Number |
UI Expand | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||
|
UI Expand | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters used in this function
data type |
Parameter description. | <parameter>
data type | | <parameter>Parameter description.
data type | Parameter description. | <parameter>
data type | Parameter description.
|
UI Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
The This function returns a
|
UI Text Box | ||
---|---|---|
| ||
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
Page properties report | ||||||
---|---|---|---|---|---|---|
|
Page properties | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
Page properties | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||
|