Class DateTimeWrapper
An ElementWrapper class that can serve as the basis for Atom Date Construct based extensions.
Inheritance
System.Object
DateTimeWrapper
Namespace: Syncfusion.UI.Xaml.Primitives
Assembly: Syncfusion.SfShared.UWP.dll
Syntax
[ClassReference(IsReviewed = false)]
public class DateTimeWrapper : Object
Constructors
DateTimeWrapper(DateTime)
Initializes a new instance of the DateTimeWrapper class.
Declaration
[ClassReference(IsReviewed = false)]
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
[ClassReference(IsReviewed = false)]
public string AmPmString { get; }
Property Value
Type |
---|
System.String |
DateTime
Gets the DateTime being wrapped.
Declaration
[ClassReference(IsReviewed = false)]
public DateTime DateTime { get; }
Property Value
Type |
---|
System.DateTime |
DayName
Gets the day name as a string.
Declaration
[ClassReference(IsReviewed = false)]
public string DayName { get; }
Property Value
Type |
---|
System.String |
DayNumber
Gets the 2-digit day as a string.
Declaration
[ClassReference(IsReviewed = false)]
public string DayNumber { get; }
Property Value
Type |
---|
System.String |
HourNumber
Gets the hour as a string.
Declaration
[ClassReference(IsReviewed = false)]
public string HourNumber { get; }
Property Value
Type |
---|
System.String |
IsTwentyFourHourtimeline
Gets or sets the IsTwentyFour Hour timeline as a boolean.
Declaration
[ClassReference(IsReviewed = false)]
public static bool IsTwentyFourHourtimeline { get; set; }
Property Value
Type |
---|
System.Boolean |
MinuteNumber
Gets the 2-digit minute as a string.
Declaration
[ClassReference(IsReviewed = false)]
public string MinuteNumber { get; }
Property Value
Type |
---|
System.String |
MonthName
Gets the month name as a string.
Declaration
[ClassReference(IsReviewed = false)]
public string MonthName { get; }
Property Value
Type |
---|
System.String |
MonthNumber
Gets the 2-digit month as a string.
Declaration
[ClassReference(IsReviewed = false)]
public string MonthNumber { get; }
Property Value
Type |
---|
System.String |
SecondNumber
Gets the 2-digit second as a string.
Declaration
[ClassReference(IsReviewed = false)]
public string SecondNumber { get; }
Property Value
Type |
---|
System.String |
YearNumber
Gets the 4-digit year as a string.
Declaration
[ClassReference(IsReviewed = false)]
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
[ClassReference(IsReviewed = false)]
public static bool CurrentCultureUsesTwentyFourHourClock()
Returns
Type | Description |
---|---|
System.Boolean | True if it uses a 24-hour clock; false otherwise. |