Enum DateTimePattern
Defines the constants that specifies the date time display pattern for SfDateTimeEdit.
Namespace: Syncfusion.WinForms.Input.Enums
Assembly: Syncfusion.SfInput.WinForms.dll
Syntax
public enum DateTimePattern
Fields
Name | Description |
---|---|
Custom | The SfDateTimeEdit control displays the date/time value in a custom format. SfDateTimeEdit contains the property named Format. which helps to assign the custom format for the SfDateTimeEdit. We can assign the date format as DD, DDD, DDDD. DD is denotes date in numbers. DDDD denotes Date in abbreviated form of day(For E.g Wednesday as Wed) and DDDD denotes the day in string format(E.g Wednesday). Similarly, the month will be denoted as MM, MMM, MMMM. Where MM is month in numbers, MMM denotes month in abbreviated form (E.g January as Jan) and MMM denotes the month in string forma(January).Year field can be denoted as YY or YYYY. YY is two digit year field and YYYY is four digit year field. The hours, minutes and seconds and meridiem can be denotes as HH:mm:SS TT or HH:mm:SS TT. |
FullDateTime | The SfDateTimeEdit control displays the date/time value in full DateTime format set by the user's operating system. |
LongDate | The SfDateTimeEdit control displays the date/time value in the long date format set by the user's operating system. |
LongTime | The SfDateTimeEdit control displays the date/time value in the long time format set by the user's operating system. |
MonthDay | The SfDateTimeEdit control displays the date/time value in the Month day format set by the user's operating system. |
RFC1123 | The SfDateTimeEdit control displays the date/time value in the Rfc1123 format set by the user's operating system. |
ShortDate | The SfDateTimeEdit control displays the date/time value in the short date format set by the user's operating system. |
ShortTime | The SfDateTimeEdit control displays the date/time value in the short time format set by the user's operating system. |
SortableDateTime | The SfDateTimeEdit control displays the date/time value in the sortable date format set by the user's operating system. |
UniversalSortableDateTime | The SfDateTimeEdit control displays the date/time value in the Universal sortable date format set by the user's operating system. |
YearMonth | The SfDateTimeEdit control displays the date/time value in the year month format set by the user's operating system. pattern. |