TheCommonUtils..::..GetDateTimeString Method (DateTimeOffset, Int32, String)
Returns a cultural correct string representation of a DateTimeOffset.
Only use for Displaying DateTimeOffsets in UX! Do not use for Messaging or Storage!
Namespace:
nsCDEngine.BaseClassesAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public static string GetDateTimeString( DateTimeOffset pDate, int pLCID, string pFormat )
Public Shared Function GetDateTimeString ( _ pDate As DateTimeOffset, _ pLCID As Integer, _ pFormat As String _ ) As String
public: static String^ GetDateTimeString( DateTimeOffset^ pDate, int^ pLCID, String^ pFormat )
Parameters
- pDate
- Type: DateTimeOffset
If null or MinValue the function return an empty string.
- pLCID
- Type: Int32
LCID of the language required. If set to 0 the current culture is used. Negative numbers return the Date in ISO8601 format.
- pFormat
- Type: String
Format string for the return. If not set, "" will be used.