NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

GregorianCalendar.GetEra (DateTime)

Returns the era for the given DateTime.

[Visual Basic]
Overloads Overrides Public Function GetEra( _
   ByVal time As DateTime _
) As Integer
[C#]
public override int GetEra(
   DateTime time
);
[C++]
public: override int GetEra(
   DateTime time
);
[JScript]
public override function GetEra(
   time : DateTime
) : int;

Parameters

time
The DateTime instance.

Return Value

Returns the era for the given DateTime value.

See Also

GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace | GregorianCalendar.GetEra Overload List