C# Class NetworkCommsDotNet.Tools.XPlatformHelper.DateTimeExtensions

Mostra file Open project: MarcFletcher/NetworkComms.Net

Public Methods

Method Description
ToLongDateString ( this dt ) : string

Converts the value of the current DateTime object to its equivalent long date string representation.

ToLongTimeString ( this dt ) : string

Converts the value of the current DateTime object to its equivalent long time string representation.

ToShortDateString ( this dt ) : string

Converts the value of the current DateTime object to its equivalent short date string representation.

ToShortTimeString ( this dt ) : string

Converts the value of the current DateTime object to its equivalent short time string representation.

Method Details

ToLongDateString() public static method

Converts the value of the current DateTime object to its equivalent long date string representation.
public static ToLongDateString ( this dt ) : string
dt this
return string

ToLongTimeString() public static method

Converts the value of the current DateTime object to its equivalent long time string representation.
public static ToLongTimeString ( this dt ) : string
dt this
return string

ToShortDateString() public static method

Converts the value of the current DateTime object to its equivalent short date string representation.
public static ToShortDateString ( this dt ) : string
dt this
return string

ToShortTimeString() public static method

Converts the value of the current DateTime object to its equivalent short time string representation.
public static ToShortTimeString ( this dt ) : string
dt this
return string