Show / Hide Table of Contents

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

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.