Maptitude GISDK Help |
Creates a DateTime compound variable with just a date.
Added to Version 2013.
datetime = CreateDate([int day, int month, int year])
Argument |
Contents |
day |
Day number |
month |
Month number |
year |
Full year number |
A DateTime compound variable with missing time properties.
All arguments are optional, but you must have the correct number of leading commas for the month and year arguments.
If all arguments are null, or no arguments are supplied, CreateDate() returns the current date.
The hour, minute, second, and millisecond properties of the DateTime compound variable will be null.
For more information on DateTime compound variables, see Compound Variables.
dt = CreateDate(3,1,2013)
ShowArray({dt})
ShowMessage(i2s(dt.year))
dt = CreateDate()
ShowMessage("Today is " + FormatDateTime(dt,))
Function |
Summary |
Creates a DateTime compound variable |
|
Creates a DateTime compound variable with just a time |
|
Formats a DateTime compound variable |
|
Parses a string to create a DateTime compound variable |
©2025 Caliper Corporation | www.caliper.com |