Skip to main content
Version: 8.1

This function is used in Python Scripting.


Creates a new Date object given a year, month and a day. The time will be set to midnight of that day.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax, month, day)


IntegeryearThe year for the new date.
IntegermonthThe month of the new date. January is month 0.
IntegerdayThe day of the month for the new date. The first day of the month is day 1.


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


Gateway, Vision Client, Perspective Session

Code Examples

Code Snippet
# This example will create a new date object set to January 1st, 2017.

date =, 0, 1)
print date


system date getDate, date.getDate