Class DateTimeExtensions
Inheritance
DateTimeExtensions
Assembly: SoDataBase.dll
Syntax
public static class DateTimeExtensions : Object
Methods
ToLongDateString(DateTime, Boolean)
Declaration
public static string ToLongDateString(this DateTime dateTime, bool replaceMinValueWithEmptyString)
Parameters
Type |
Name |
Description |
DateTime |
dateTime |
|
Boolean |
replaceMinValueWithEmptyString |
|
Returns
ToLongTimeString(DateTime, Boolean)
Declaration
public static string ToLongTimeString(this DateTime dateTime, bool replaceMinValueWithEmptyString)
Parameters
Type |
Name |
Description |
DateTime |
dateTime |
|
Boolean |
replaceMinValueWithEmptyString |
|
Returns
ToShortDateString(DateTime, Boolean)
Declaration
public static string ToShortDateString(this DateTime dateTime, bool replaceMinValueWithEmptyString)
Parameters
Type |
Name |
Description |
DateTime |
dateTime |
|
Boolean |
replaceMinValueWithEmptyString |
|
Returns
ToShortTimeString(DateTime, Boolean)
Declaration
public static string ToShortTimeString(this DateTime dateTime, bool replaceMinValueWithEmptyString)
Parameters
Type |
Name |
Description |
DateTime |
dateTime |
|
Boolean |
replaceMinValueWithEmptyString |
|
Returns
ToString(DateTime, Boolean)
Declaration
public static string ToString(this DateTime dateTime, bool replaceMinValueWithEmptyString)
Parameters
Type |
Name |
Description |
DateTime |
dateTime |
|
Boolean |
replaceMinValueWithEmptyString |
|
Returns
ToString(DateTime, String, Boolean)
Declaration
public static string ToString(this DateTime dateTime, string format, bool replaceMinValueWithEmptyString)
Parameters
Returns