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.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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 | Description |
---|---|
System.String |
DateTime
Gets the DateTime being wrapped.
Declaration
public DateTime DateTime { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
DayName
Gets the day name as a string.
Declaration
public string DayName { get; }
Property Value
Type | Description |
---|---|
System.String |
DayNumber
Gets the 2-digit day as a string.
Declaration
public string DayNumber { get; }
Property Value
Type | Description |
---|---|
System.String |
HourNumber
Gets the hour as a string.
Declaration
public string HourNumber { get; }
Property Value
Type | Description |
---|---|
System.String |
IsTwentyFourHourtimeline
Gets or sets the IsTwentyFour Hour timeline as a boolean.
Declaration
public static bool IsTwentyFourHourtimeline { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MinuteNumber
Gets the 2-digit minute as a string.
Declaration
public string MinuteNumber { get; }
Property Value
Type | Description |
---|---|
System.String |
MonthName
Gets the month name as a string.
Declaration
public string MonthName { get; }
Property Value
Type | Description |
---|---|
System.String |
MonthNumber
Gets the 2-digit month as a string.
Declaration
public string MonthNumber { get; }
Property Value
Type | Description |
---|---|
System.String |
SecondNumber
Gets the 2-digit second as a string.
Declaration
public string SecondNumber { get; }
Property Value
Type | Description |
---|---|
System.String |
YearNumber
Gets the 4-digit year as a string.
Declaration
public string YearNumber { get; }
Property Value
Type | Description |
---|---|
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. |