C# Class Common.DT

Afficher le fichier Open project: suntong/lang

Méthodes publiques

Méthode 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 méthode

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

FirstDayOfYear() public static méthode

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

GetTomorrow() public static méthode

Gets the next day, tomorrow.
public static GetTomorrow ( ) : System.DateTime
Résultat System.DateTime

GetYesterday() public static méthode

Gets the previous day to the current day.
public static GetYesterday ( ) : System.DateTime
Résultat System.DateTime

LastDayOfYear() public static méthode

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

LastDayOfYear() public static méthode

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