C# Class Worki.Infrastructure.Helpers.CultureHelpers

Datei anzeigen Open project: tah91/eworkyWebSite

Public Methods

Method Description
GetDistanceFactor ( ) : float

Get factor to convert into miles if needed, depending on culture

GetFormat ( TimeFormat format = TimeFormat.Date ) : string

Get Format for javascript date, depending on culture

GetSpecificFormat ( System.DateTime date, TimeFormat format = TimeFormat.Date ) : string

Display datetime with the right format according to the current culture

Method Details

GetDistanceFactor() public static method

Get factor to convert into miles if needed, depending on culture
public static GetDistanceFactor ( ) : float
return float

GetFormat() public static method

Get Format for javascript date, depending on culture
public static GetFormat ( TimeFormat format = TimeFormat.Date ) : string
format TimeFormat Format desired
return string

GetSpecificFormat() public static method

Display datetime with the right format according to the current culture
public static GetSpecificFormat ( System.DateTime date, TimeFormat format = TimeFormat.Date ) : string
date System.DateTime Date to display
format TimeFormat Format desired
return string