Versions Compared

Key

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

...

Info
titleAvailability

This routine is available since starting with katl-commons 1.0.

Syntax

...

startOfDay(date)

Description

...

Excerpt

Returns a date, but strips off the hours, minutes and seconds.

Parameters

...

Parameter name

Type

Required

Description

date

date

Yes

Specifies a Date expression

Return type

...

date

Example

...

Example 1

...

Code Block
if(datepicker < startOfDay(currentDate())){
    return false;
}

Example 2

...

Code Block
date varDate = "2011-08-17";
print("Date is " + startOfDay(varDate));

Print Date is 17/Aug/11

See

...

also

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