## DateTimeFormatInfo::GetEra method


Gets era by name.

```cpp
int System::Globalization::DateTimeFormatInfo::GetEra(const String &era_name) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| era_name | const String\& | Era name. |

### ReturnValue

Era index.

## See Also

* Class [String](../../../system/string/)
* Class [DateTimeFormatInfo](../)
* Namespace [System::Globalization](../../)
* Library [Aspose.TeX for C++](../../../)
