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
void MgDateTime::SetYear | ( | INT16 | year | ) |
Sets the year component of this object The Validate method should be called after the date time value has been fully specified by Set methods. .NET Syntax
`void SetYear(short year);`
Java Syntax
`void SetYear(short year);`
PHP Syntax
`void SetYear(int year);`
  Parameters:
  | year | (short/int) Year in the range of 1 to 9999

Comments or suggestions? Send us feedback.