C# Class Upac.Core.Utilities.DateUtil

显示文件 Open project: 1508/upac-for-umbraco

Public Methods

Method Description
CreateRfc822Date ( System.DateTime dateTime ) : string

Returns the RFC822 datetime format for the specified isodate. RFC822 should be used when generating rss feeds etc

FormatDate ( System.DateTime dateTime, string key ) : string
FormatDate ( string isodate, string key ) : string
FormatDateLong ( System.DateTime dateTime ) : string
FormatDateLong ( string isodate ) : string
FormatDateShort ( System.DateTime dateTime ) : string
FormatDateShort ( string isodate ) : string
FormatDateTime ( System.DateTime dateTime ) : string
FormatDateTime ( string isodate ) : string
FormatTime ( System.DateTime dateTime ) : string
FormatTime ( string isodate ) : string
ToIsoDate ( System.DateTime dateTime ) : string

Private Methods

Method Description
GetFormatViaKey ( string key, bool &failed ) : string

Method Details

CreateRfc822Date() public static method

Returns the RFC822 datetime format for the specified isodate. RFC822 should be used when generating rss feeds etc
public static CreateRfc822Date ( System.DateTime dateTime ) : string
dateTime System.DateTime The dateTime to convert to RFC822 format
return string

FormatDate() public static method

public static FormatDate ( System.DateTime dateTime, string key ) : string
dateTime System.DateTime
key string
return string

FormatDate() public static method

public static FormatDate ( string isodate, string key ) : string
isodate string
key string
return string

FormatDateLong() public static method

public static FormatDateLong ( System.DateTime dateTime ) : string
dateTime System.DateTime
return string

FormatDateLong() public static method

public static FormatDateLong ( string isodate ) : string
isodate string
return string

FormatDateShort() public static method

public static FormatDateShort ( System.DateTime dateTime ) : string
dateTime System.DateTime
return string

FormatDateShort() public static method

public static FormatDateShort ( string isodate ) : string
isodate string
return string

FormatDateTime() public static method

public static FormatDateTime ( System.DateTime dateTime ) : string
dateTime System.DateTime
return string

FormatDateTime() public static method

public static FormatDateTime ( string isodate ) : string
isodate string
return string

FormatTime() public static method

public static FormatTime ( System.DateTime dateTime ) : string
dateTime System.DateTime
return string

FormatTime() public static method

public static FormatTime ( string isodate ) : string
isodate string
return string

ToIsoDate() public static method

public static ToIsoDate ( System.DateTime dateTime ) : string
dateTime System.DateTime
return string