This function is used in Python Scripting.


Returns a copy of a date with the hour, minute, second, and millisecond fields set to zero.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.


  • Parameters

Date dateThe starting date.

  • Returns

Date - A new date, set to midnight of the day provided.

  • Scope

Gateway, Vision Client, Perspective Session

Code Examples
Code Snippet
# This example prints out the current date with the time set to midnight.
date =

system date midnight, date.midnight