Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | toJiraDateFormat(date_as_string, [includeTime]) | Package | | Alias | | Pkg Usage | |
|
Description
Excerpt |
---|
|
Displays the given date using Jira format. |
Displays the given date using Jira format.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
date_as_string | String | Yes | Date given as a string that will be converted to Jira format. | includeTime | Boolean | No | "True" if you want to include the time to the new format and "false" if not. |
|
Return Type
String
The return value represents the converted date.
Examples
Example 1
Example 1Let's consider the following SIL code:
Code Block |
---|
|
return toJiraDateFormat("2017-04-19", true); |
This will return: 19/Apr/17 12:00 AM
Example 2
By running this code:
Code Block |
---|
|
return toJiraDateFormat |
...
The result will be: 19/Apr/17
Example 3
By running this code:
Code Block |
---|
|
return toJiraDateFormat("2017-04-19"); |
he result will be: 19/Apr/17
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "date_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|
We've encountered an issue exporting this macro. Please try exporting this page again later.