Versions Compared

Key

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

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 2.5.5.

Syntax

startOfMonth(date)

...

Excerpt

Returns a date set on the first day of the month for the given date. Also sets hours/minutes/seconds to 0.

Parameters

Parameter name

Type

Required

Description

date

date

Yes

Specifies a Date expression.

Return type

date

Example

Code Block
function startOfMonthToDesc(date d){
    desc += "Start of month for date " + d + " is " + startOfMonth(d) + "\n";
}

desc = "";
startOfMonthToDesc("2013-01-26 20:19:18");
startOfMonthToDesc("2013-02-01 20:19:18");
startOfMonthToDesc("2013-02-28 20:19:18");
startOfMonthToDesc("2012-02-29 20:19:18");
startOfMonthToDesc("2012-12-31 23:59:59");
startOfMonthToDesc("2012-12-01 23:59:59");
startOfMonthToDesc("2012-12-01 00:00:00");

...

Filter by label (Content by label)
showLabelsfalse
max100
showSpacefalse
cqllabel = "date_routines"
labelsdate_routines