Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

GetDay
GetHour
GetMicrosecond
GetMinute
GetMonth
GetSecond
GetYear
IsDate
IsDateTime
IsTime
MgDateTime
MgDateTime
MgDateTime
MgDateTime
SetDay
SetHour
SetMicrosecond
SetMinute
SetMonth
SetSecond
SetYear
Validate
MgDateTime::MgDateTime | ( | INT16 | year,
|  | INT8 | month,
|  | INT8 | day |
| ) |  |  |
Construct a date value. .NET Syntax
`MgDateTime(short year, short month, short day);`
Java Syntax
`MgDateTime(short year, short month, short day);`
PHP Syntax
`MgDateTime(int year, int month, int day);`
  Parameters:
  | year | (short/int) Input year
  | month | (short/int) Input month
  | day | (short/int) Input day of month
Returns: Returns nothing.

Comments or suggestions? Send us feedback.