C# Class WinRTXamlToolkit.Controls.DateTimeHelper

Inherited code: Requires comment.
Show file Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
AddDays ( System.DateTime time, int days ) : DateTime?

Inherited code: Requires comment.

AddMonths ( System.DateTime time, int months ) : DateTime?

Inherited code: Requires comment.

AddYears ( System.DateTime time, int years ) : DateTime?

Inherited code: Requires comment.

CompareDays ( System.DateTime dt1, System.DateTime dt2 ) : int

Inherited code: Requires comment.

CompareYearMonth ( System.DateTime dt1, System.DateTime dt2 ) : int

Inherited code: Requires comment.

DecadeOfDate ( System.DateTime date ) : int

Inherited code: Requires comment.

DiscardDayTime ( System.DateTime d ) : System.DateTime

Inherited code: Requires comment.

DiscardTime ( System.DateTime d ) : DateTime?

Inherited code: Requires comment.

EndOfDecade ( System.DateTime date ) : int

Inherited code: Requires comment.

GetCurrentDateFormat ( ) : DateTimeFormatInfo

Inherited code: Requires comment.

InRange ( System.DateTime date, CalendarDateRange range ) : bool

Returns if the date is included in the range.

ToYearMonthPatternString ( System.DateTime date ) : string

Gets a localized string for the specified date using the YearMonthPattern format.

ToYearString ( System.DateTime date ) : string

Gets a localized string for the specified date's year.

Method Details

AddDays() public static method

Inherited code: Requires comment.
public static AddDays ( System.DateTime time, int days ) : DateTime?
time System.DateTime Inherited code: Requires comment 1.
days int Inherited code: Requires comment 2.
return DateTime?

AddMonths() public static method

Inherited code: Requires comment.
public static AddMonths ( System.DateTime time, int months ) : DateTime?
time System.DateTime Inherited code: Requires comment 1.
months int Inherited code: Requires comment 2.
return DateTime?

AddYears() public static method

Inherited code: Requires comment.
public static AddYears ( System.DateTime time, int years ) : DateTime?
time System.DateTime Inherited code: Requires comment 1.
years int Inherited code: Requires comment 2.
return DateTime?

CompareDays() public static method

Inherited code: Requires comment.
public static CompareDays ( System.DateTime dt1, System.DateTime dt2 ) : int
dt1 System.DateTime Inherited code: Requires comment 1.
dt2 System.DateTime Inherited code: Requires comment 2.
return int

CompareYearMonth() public static method

Inherited code: Requires comment.
public static CompareYearMonth ( System.DateTime dt1, System.DateTime dt2 ) : int
dt1 System.DateTime Inherited code: Requires comment 1.
dt2 System.DateTime Inherited code: Requires comment 2.
return int

DecadeOfDate() public static method

Inherited code: Requires comment.
public static DecadeOfDate ( System.DateTime date ) : int
date System.DateTime Inherited code: Requires comment 1.
return int

DiscardDayTime() public static method

Inherited code: Requires comment.
public static DiscardDayTime ( System.DateTime d ) : System.DateTime
d System.DateTime Inherited code: Requires comment 1.
return System.DateTime

DiscardTime() public static method

Inherited code: Requires comment.
public static DiscardTime ( System.DateTime d ) : DateTime?
d System.DateTime Inherited code: Requires comment 1.
return DateTime?

EndOfDecade() public static method

Inherited code: Requires comment.
public static EndOfDecade ( System.DateTime date ) : int
date System.DateTime Inherited code: Requires comment 1.
return int

GetCurrentDateFormat() public static method

Inherited code: Requires comment.
public static GetCurrentDateFormat ( ) : DateTimeFormatInfo
return System.Globalization.DateTimeFormatInfo

InRange() public static method

Returns if the date is included in the range.
public static InRange ( System.DateTime date, CalendarDateRange range ) : bool
date System.DateTime Inherited code: Requires comment 1.
range CalendarDateRange Inherited code: Requires comment 2.
return bool

ToYearMonthPatternString() public static method

Gets a localized string for the specified date using the YearMonthPattern format.
public static ToYearMonthPatternString ( System.DateTime date ) : string
date System.DateTime Date to convert.
return string

ToYearString() public static method

Gets a localized string for the specified date's year.
public static ToYearString ( System.DateTime date ) : string
date System.DateTime Date to convert.
return string