'Declaration Public Enum DateTimeFormatType Inherits System.Enum
public enum DateTimeFormatType : System.Enum
Member | Description |
---|---|
DayOfMonthNumber | The day of the month string e.g. '1'thru '31'. |
DayOfWeek | The full day of the week string e.g. 'Tuesday', 'Wednesday' etc. |
FullDateTime | Uses the full date time pattern to format the date and time, e.g. 'Thursday, July 22, 2010 4:31:00 PM' |
Hour | The hour of the day string e.g. '1' thru '12' or '0' thru '23'. |
LongDate | Uses the long date pattern to format the date, e.g. 'Sunday, July 25, 2010' |
LongTime | Uses the long time pattern to format the date, e.g. '4:31:00 PM' |
Minute | The minute of the hour string e.g. '0' thru '59', |
MonthDay | The month and the day e.g. August 25. |
MonthName | The full name of the month e.g. 'December'. |
MonthOfYearNumber | The month of the year string e.g. '1' thru '12'. |
None | Return an empty string |
ShortDate | Uses the short date pattern to format the date, e.g. '7/22/2010' |
ShortDayOfWeek | An abbreviated day of the week string e.g. 'Tue', 'Wed' etc. |
ShortestDayOfWeek | The shorted day of the week string e.g. 'Tu', 'We' etc. Note: in Silverlight this is the same as 'ShortDayOfWeek' |
ShortestMonthDay | The month and the day e.g. 8/25. |
ShortMonthDay | The month and the day e.g. Aug 25. |
ShortTime | Uses the short time pattern to format the date, e.g. '4:31 PM' |
Year2Digit | The year with 2 digits e.g. 2010 as '10'. |
Year4Digit | The year with 4 digits e.g. '2010'. |
YearMonth | The year and the month e.g. 'July, 2010'. |
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2