RAD function: date

A RAD function that returns the date portion of a date and time variable.

Function

date

Format

date($date.time.variable)

Factors

  • The date portion of a date and time value is midnight of that day. For example, 00:00:00. The function uses the local time zone to determine the date.
  • The argument can be any absolute date and time value, or an absolute time, including tod.

Example

$date.opened=date($date.time.variable)

Where $date.time.variable contains the current date and time or another valid date and time value. For example, if $date.time.variable = '08/01/08 10:10:10', then $date.opened = '08/01/08 00:00:00'

.