Mono Class Library: System.Globalization.DateTimeFormatInfo Overview | MembersSystem.Globalization.DateTimeFormatInfo.GetEra Method |
Gets a int representing the specified era. [Edit]
|
A int representing the era. If eraName is invalid, returns -1. [Edit]
Type Reason ArgumentNullException eraName is a null reference. [Edit]
The value specified for eraName is case-insensitive.
Note: An era name is a culturally specific name for a period of time marked by distinctive characters or reckoned from a fixed point or event. For example "A.D." and "B.C." are two eras of the Gregorian calendar.[Edit]
Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0