C# Class Cornerstone.Extensions.DateTimeExtensions

显示文件 Open project: damienhaynes/moving-pictures

Public Methods

Method Description
GetStartOfMonth ( this self ) : System.DateTime

Gets a new instance of DateTime representing the start of the month for this instance

GetStartOfWeek ( this self ) : System.DateTime

Gets an instance of DateTime representing the start of the week for this instance

GetStartOfYear ( this self ) : System.DateTime

Gets a new instance of DateTime representing the start of the year for this instance

Method Details

GetStartOfMonth() public static method

Gets a new instance of DateTime representing the start of the month for this instance
public static GetStartOfMonth ( this self ) : System.DateTime
self this
return System.DateTime

GetStartOfWeek() public static method

Gets an instance of DateTime representing the start of the week for this instance
public static GetStartOfWeek ( this self ) : System.DateTime
self this
return System.DateTime

GetStartOfYear() public static method

Gets a new instance of DateTime representing the start of the year for this instance
public static GetStartOfYear ( this self ) : System.DateTime
self this
return System.DateTime