Mendix 7 is no longer supported unless you have Extended Support (for details, please contact Mendix Support). Mendix 7 documentation will remain available for customers with Extended Support until July, 2024.
Date Creation
Date-type variables for a certain date can be created by using parseDateTime. This takes a date string and a format string as parameters and returns a date-type variable. For more details, see parseDateTime.
String variables representing a date can be created with the dateTime
and dateTimeUTC
functions. The difference between these two functions is that dateTime
uses the calendar of the session used in the function call, and dateTimeUTC
uses the UTC calendar. The system session runs as UTC by default, but this can be configured in the Project Settings.
These functions take between 1 and 6 input parameters and return a string. These represent, in order:
- Years
- Type: integer, four digits, and greater than 1799
- Months
- Type: integer, between 1 and 12
- Days
- Type: integer, between 1 and 31
- Hours
- Type: integer, between 0 and 23
- Minutes
- Type: integer, between 0 and 59
- Seconds
- Type: integer, between 0 and 59
One parameter:
|
|
returns:
|
|
Two parameters:
|
|
return:
|
|
Three parameters:
|
|
return:
|
|
Four parameters:
|
|
return:
|
|
Five parameters:
|
|
return:
|
|
Six parameters:
|
|
return:
|
|