C# Class WhiteCore.Framework.Utilities.Culture

Mostra file Open project: WhiteCoreSim/WhiteCore-Dev

Public Methods

Method Description
LocaleDate ( System.DateTime userDateTime ) : string

Returns a formatted date string depending upon the system Locale.

LocaleDate ( System.DateTime userDateTime, string dtFormat ) : string

Returns a formatted date string depending upon the system Locale.

LocaleLogStamp ( ) : string

Returns a formatted date time string depending upon the system Locale. Used for logging

LocaleShortDateTime ( System.DateTime userDateTime ) : string
LocaleTimeDate ( ) : string

Returns a formatted date time string depending upon the system Locale.

SetCurrentCulture ( ) : void

Set Culture to en-US to make string processing of numbers simpler.

Method Details

LocaleDate() public static method

Returns a formatted date string depending upon the system Locale.
public static LocaleDate ( System.DateTime userDateTime ) : string
userDateTime System.DateTime
return string

LocaleDate() public static method

Returns a formatted date string depending upon the system Locale.
public static LocaleDate ( System.DateTime userDateTime, string dtFormat ) : string
userDateTime System.DateTime User date time.
dtFormat string DateTime format if required.
return string

LocaleLogStamp() public static method

Returns a formatted date time string depending upon the system Locale. Used for logging
public static LocaleLogStamp ( ) : string
return string

LocaleShortDateTime() public static method

public static LocaleShortDateTime ( System.DateTime userDateTime ) : string
userDateTime System.DateTime
return string

LocaleTimeDate() public static method

Returns a formatted date time string depending upon the system Locale.
public static LocaleTimeDate ( ) : string
return string

SetCurrentCulture() public static method

Set Culture to en-US to make string processing of numbers simpler.
public static SetCurrentCulture ( ) : void
return void