Enum PopupDateFormat
Format that controls how a date field is displayed in a popup.
Namespace: Esri.ArcGISRuntime.Mapping.Popups
Assembly: Esri.ArcGISRuntime.dll
Syntax
public enum PopupDateFormat
Remarks
Most formats are based on System.Globalization.DateTimeFormatInfo from System.Globalization.CultureInfo.CurrentCulture, so the component order, formatting, day-of-the-week names, and month names vary based on the current culture.
Formats that end with -24
always use 24-hour time.
The rest of the formats use either 12-hour or 24-hour time based on the current culture
(e.g. 5:59 PM
or 17:59
or 오후 5:59
).
Formats that end with -LE
always use "day-month-year" order for dates.
The rest of the formats order date components based on the current culture
(e.g. 12/30/1997
or 1997-12-30
or 30.12.1997
).
Some formats may produce different results on .NET 5+ compared to .NET Framework or UWP, because .NET 5+ uses a different internationalization database. For more information, see .NET Globalization and ICU.
Documentation examples below are localized to en-US.
Fields
Name | Description |
---|---|
DayShortMonthYear | Example: Dec 30, 1997 |
DayShortMonthYearLongTime | Example: Dec 30, 1997 5:59:59 PM |
DayShortMonthYearLongTime24 | Example: Dec 30, 1997 17:59:59 |
DayShortMonthYearShortTime | Example: Dec 30, 1997 5:59 PM |
DayShortMonthYearShortTime24 | Example: Dec 30, 1997 17:59 |
LongDate | Example: Tuesday, December 30, 1997 Matches the current System.Globalization.DateTimeFormatInfo.LongDatePattern. |
LongDateLongTime | Example: Tuesday, December 30, 1997 5:59:59 PM Matches the current System.Globalization.DateTimeFormatInfo.FullDateTimePattern. |
LongDateLongTime24 | Example: Tuesday, December 30, 1997 17:59:59 |
LongDateShortTime | Example: Tuesday, December 30, 1997 5:59 PM |
LongDateShortTime24 | Example: Tuesday, December 30, 1997 17:59 |
LongMonthDayYear | Example: December 30, 1997 |
LongMonthDayYearLongTime | Example: December 30, 1997 5:59:59 PM |
LongMonthDayYearLongTime24 | Example: December 30, 1997 17:59:59 |
LongMonthDayYearShortTime | Example: December 30, 1997 5:59 PM |
LongMonthDayYearShortTime24 | Example: December 30, 1997 17:59 |
LongMonthYear | Example: December 1997 |
ShortDate | Example: 12/30/1997 Matches the current System.Globalization.DateTimeFormatInfo.ShortDatePattern. |
ShortDateLE | Example: 30/12/1997 |
ShortDateLELongTime | Example: 30/12/1997 5:59:59 PM |
ShortDateLELongTime24 | Example: 30/12/1997 17:59:59 |
ShortDateLEShortTime | Example: 30/12/1997 5:59 PM |
ShortDateLEShortTime24 | Example: 30/12/1997 17:59 |
ShortDateLongTime | Example: 12/30/1997 5:59:59 PM |
ShortDateLongTime24 | Example: 12/30/1997 17:59:59 |
ShortDateShortTime | Example: 12/30/1997 5:59 PM |
ShortDateShortTime24 | Example: 12/30/1997 17:59 |
ShortMonthYear | Example: Dec 1997 |
Year | Example: 1997 |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |