alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class DateTimePattern

    Defines the constants that specifies the date time display pattern for SfDateTimeEdit.

    Inheritance
    System.Object
    DateTimePattern
    Namespace: Syncfusion.WinForms.Input.Enums
    Assembly: Syncfusion.SfInput.WinForms.dll
    Syntax
    public sealed class DateTimePattern : Enum

    Fields

    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.
    Declaration
    public const DateTimePattern Custom
    Field Value
    Type
    DateTimePattern

    FullDateTime

    The SfDateTimeEdit control displays the date/time value in full DateTime format set by the user's operating system.

    Declaration
    public const DateTimePattern FullDateTime
    Field Value
    Type
    DateTimePattern

    LongDate

    The SfDateTimeEdit control displays the date/time value in the long date format set by the user's operating system.

    Declaration
    public const DateTimePattern LongDate
    Field Value
    Type
    DateTimePattern

    LongTime

    The SfDateTimeEdit control displays the date/time value in the long time format set by the user's operating system.

    Declaration
    public const DateTimePattern LongTime
    Field Value
    Type
    DateTimePattern

    MonthDay

    The SfDateTimeEdit control displays the date/time value in the Month day format set by the user's operating system.

    Declaration
    public const DateTimePattern MonthDay
    Field Value
    Type
    DateTimePattern

    RFC1123

    The SfDateTimeEdit control displays the date/time value in the Rfc1123 format set by the user's operating system.

    Declaration
    public const DateTimePattern RFC1123
    Field Value
    Type
    DateTimePattern

    ShortDate

    The SfDateTimeEdit control displays the date/time value in the short date format set by the user's operating system.

    Declaration
    public const DateTimePattern ShortDate
    Field Value
    Type
    DateTimePattern

    ShortTime

    The SfDateTimeEdit control displays the date/time value in the short time format set by the user's operating system.

    Declaration
    public const DateTimePattern ShortTime
    Field Value
    Type
    DateTimePattern

    SortableDateTime

    The SfDateTimeEdit control displays the date/time value in the sortable date format set by the user's operating system.

    Declaration
    public const DateTimePattern SortableDateTime
    Field Value
    Type
    DateTimePattern

    UniversalSortableDateTime

    The SfDateTimeEdit control displays the date/time value in the Universal sortable date format set by the user's operating system.

    Declaration
    public const DateTimePattern UniversalSortableDateTime
    Field Value
    Type
    DateTimePattern

    YearMonth

    The SfDateTimeEdit control displays the date/time value in the year month format set by the user's operating system. pattern.

    Declaration
    public const DateTimePattern YearMonth
    Field Value
    Type
    DateTimePattern
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved