menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DateTimeWrapper - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DateTimeWrapper

    An ElementWrapper class that can serve as the basis for Atom Date Construct based extensions.

    Inheritance
    System.Object
    DateTimeWrapper
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Primitives
    Assembly: Syncfusion.SfInput.Wpf.dll
    Syntax
    public class DateTimeWrapper

    Constructors

    DateTimeWrapper(DateTime)

    Initializes a new instance of the DateTimeWrapper class.

    Declaration
    public DateTimeWrapper(DateTime dateTime)
    Parameters
    Type Name Description
    System.DateTime dateTime

    DateTime to wrap.

    Properties

    AmPmString

    Gets the AM/PM designator as a string.

    Declaration
    public string AmPmString { get; }
    Property Value
    Type
    System.String

    DateTime

    Gets the DateTime being wrapped.

    Declaration
    public DateTime DateTime { get; }
    Property Value
    Type
    System.DateTime

    DayName

    Gets the day name as a string.

    Declaration
    public string DayName { get; }
    Property Value
    Type
    System.String

    DayNumber

    Gets the 2-digit day as a string.

    Declaration
    public string DayNumber { get; }
    Property Value
    Type
    System.String

    HourNumber

    Gets the hour as a string.

    Declaration
    public string HourNumber { get; }
    Property Value
    Type
    System.String

    IsTwentyFourHourtimeline

    Gets or sets the IsTwentyFour Hour timeline as a boolean.

    Declaration
    public static bool IsTwentyFourHourtimeline { get; set; }
    Property Value
    Type
    System.Boolean

    MinuteNumber

    Gets the 2-digit minute as a string.

    Declaration
    public string MinuteNumber { get; }
    Property Value
    Type
    System.String

    MonthName

    Gets the month name as a string.

    Declaration
    public string MonthName { get; }
    Property Value
    Type
    System.String

    MonthNumber

    Gets the 2-digit month as a string.

    Declaration
    public string MonthNumber { get; }
    Property Value
    Type
    System.String

    SecondNumber

    Gets the 2-digit second as a string.

    Declaration
    public string SecondNumber { get; }
    Property Value
    Type
    System.String

    YearNumber

    Gets the 4-digit year as a string.

    Declaration
    public string YearNumber { get; }
    Property Value
    Type
    System.String

    Methods

    CurrentCultureUsesTwentyFourHourClock()

    Returns a value indicating whether the current culture uses a 24-hour clock.

    Declaration
    public static bool CurrentCultureUsesTwentyFourHourClock()
    Returns
    Type Description
    System.Boolean

    True if it uses a 24-hour clock; false otherwise.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved