--- title: "getDate" description: "Creates a new Date object given a year, month and a day." --- # getDate > Creates a new Date object given a year, month and a day. **This function is used by Ignition's Expression language.** ## Description Creates a new Date object given a year, month and a day. The time will be set to midnight of that day. January is 0 and December is 11. The first day of the month is 1. ## Syntax `getDate(year, month, day)` - Parameters - int **year** - The year that the date will be set to. - int **month** - The month that the date will be set to. - int **day** - The day that the date will be set to. - Results - Date - The date created from the specified integers. ## Code Examples ```python title="Code Snippet" getDate(2016, 11, 1) //This example will create a new date object set to December 1st, 2016. ```