Method | Description | |
---|---|---|
Format ( System.DateTime value, string format ) : string |
Convert the specified datetime object into specified format.
|
|
IsValidDateTime ( string value ) : bool |
Validate the datetime value.
|
|
ParseToDateTime ( string value ) : DateTime? |
/// Get the correct datetime by the specified reference type datetime object. /// Parse the specified datetime object into specified format.
|
|
ToString ( object value, string format = null, bool breakLongWords = false ) : string | ||
ToStringKeepOriginalDecimals ( this quantity, |
The default .NET implementation of decimal.ToString(culture) doesn't add the thousand seperator, decimal.ToString(format, culture) only shows 2 decimal digits.
|
Method | Description | |
---|---|---|
ParseToDateTime ( string value, System.DateTime &result ) : bool |
Parse the specified datetime into specified format.
|
public static Format ( System.DateTime value, string format ) : string | ||
value | System.DateTime | The datetime value converted into given format. |
format | string | The datetime value will parsed by this format. |
return | string |
public static IsValidDateTime ( string value ) : bool | ||
value | string | The datetime value which will be parsed. |
return | bool |
public static ParseToDateTime ( string value ) : DateTime? | ||
value | string | The reference type datetime object. |
return | DateTime? |
public static ToString ( object value, string format = null, bool breakLongWords = false ) : string | ||
value | object | |
format | string | |
breakLongWords | bool | |
return | string |
public static ToStringKeepOriginalDecimals ( this quantity, |
||
quantity | this | |
cult | ||
return | string |