C# Class Common.DT

Exibir arquivo Open project: suntong/lang

Public Methods

Method Description
FirstDayOfYear ( ) : System.DateTime

Gets the first day of the current year.

FirstDayOfYear ( System.DateTime y ) : System.DateTime

Finds the first day of year of the specified day.

GetTomorrow ( ) : System.DateTime

Gets the next day, tomorrow.

GetYesterday ( ) : System.DateTime

Gets the previous day to the current day.

LastDayOfYear ( ) : System.DateTime

Finds the last day of the year for today.

LastDayOfYear ( System.DateTime d ) : System.DateTime

Finds the last day of the year for the selected day's year.

Method Details

FirstDayOfYear() public static method

Gets the first day of the current year.
public static FirstDayOfYear ( ) : System.DateTime
return System.DateTime

FirstDayOfYear() public static method

Finds the first day of year of the specified day.
public static FirstDayOfYear ( System.DateTime y ) : System.DateTime
y System.DateTime
return System.DateTime

GetTomorrow() public static method

Gets the next day, tomorrow.
public static GetTomorrow ( ) : System.DateTime
return System.DateTime

GetYesterday() public static method

Gets the previous day to the current day.
public static GetYesterday ( ) : System.DateTime
return System.DateTime

LastDayOfYear() public static method

Finds the last day of the year for today.
public static LastDayOfYear ( ) : System.DateTime
return System.DateTime

LastDayOfYear() public static method

Finds the last day of the year for the selected day's year.
public static LastDayOfYear ( System.DateTime d ) : System.DateTime
d System.DateTime
return System.DateTime