AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

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