system.date.midnight
Description
Returns a copy of a date with the hour, minute, second, and millisecond fields set to zero.
Syntax
system.date. midnight(date )
-
Parameters
Date date- The starting date.
-
Returns
Date - A new date, set to midnight of the day provided
-
Scope
All
Code Examples
Code Snippet
#This example will print out the current date with the time set to midnight.
date
=
system.date.now()
print
system.date.midnight(date)