CultureAndRegionInfoBuilder.GregorianDateTimeFormat Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a DateTimeFormatInfo object that defines the format of dates and times according to the Gregorian calendar.
public:
property System::Globalization::DateTimeFormatInfo ^ GregorianDateTimeFormat { System::Globalization::DateTimeFormatInfo ^ get(); void set(System::Globalization::DateTimeFormatInfo ^ value); };
public System.Globalization.DateTimeFormatInfo GregorianDateTimeFormat { get; set; }
member this.GregorianDateTimeFormat : System.Globalization.DateTimeFormatInfo with get, set
Public Property GregorianDateTimeFormat As DateTimeFormatInfo
Property Value
A DateTimeFormatInfo object.
Exceptions
The value in a set operation is null
.
A property of the value in a set operation returned an invalid property value.
The current CultureAndRegionInfoBuilder object is a neutral culture.
Remarks
Every culture, including the culture defined by the current CultureAndRegionInfoBuilder object, contains a localized Gregorian calendar that is associated with a DateTimeFormatInfo object. The DateTimeFormatInfo object defines how your application displays dates and times. The GregorianDateTimeFormat property value is the DateTimeFormatInfo object associated with the first localized Gregorian calendar returned by the AvailableCalendars property.