Info |
---|
|
This routine is available starting with katl-commons 4.0.10. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | toJiraDateFormat(date_as_string, [includeTime]) | |
...
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
stringString
The return value represents the converted date.
...
Examples
Example 1
LetExample 1Let's consider the following SIL code:
...
This will return: 19/Apr/17 12:00 AMThe expected format for the date_as_string parameter when includeTime is true is "yyyy-MM-dd hh:mm".
Example 2
By running this code:
Code Block |
---|
return toJiraDateFormat("2017-04-19", false);
|
The result will be: 1919/Apr/17
The expected format for the date_as_string parameter when includeTime is false is "yyyy-MM-dd".
Example 3
By running this code:
Code Block |
---|
return toJiraDateFormat("2017-04-19");
|
The he result will be: 19/Apr/17
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 10025 |
---|
showSpace | false |
---|
cql | label = "date_routine" and space = currentSpace ( ) |
---|
labels | datearray_routineroutines |
---|
|