Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


This routine is available starting with katl-commons 4.0.10.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

toJiraDateFormat(date_as_string, [includeTime])

...

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Displays the given date using Jira format.

Displays the given date using Jira format.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

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

See also

Filter by label (Content by label)
showLabelsfalse
max10025
showSpacefalse
cqllabel = "date_routine" and space = currentSpace ( )
labelsdatearray_routineroutines