C-DEngine 5.105

TheCommonUtils..::..GetDateTimeString Method (DateTimeOffset, Guid, String)

Formats a date as a string.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static string GetDateTimeString(
	DateTimeOffset pDate,
	Guid pSEID,
	string pFormat
)
Public Shared Function GetDateTimeString ( _
	pDate As DateTimeOffset, _
	pSEID As Guid, _
	pFormat As String _
) As String
public:
static String^ GetDateTimeString(
	DateTimeOffset^ pDate, 
	Guid^ pSEID, 
	String^ pFormat
)

Parameters

pDate
Type: DateTimeOffset
Date to be converted
pSEID
Type: Guid
Session ID of the request for the string
pFormat
Type: String
Format string for the return. If not set, "" will be used

Return Value

The formatted string.

Remarks


Returns the DateTime String matching the LCID stored in the session given by the pSEID Only use for Displaying DateTimeOffsets in UX! Do not use for Messaging or Storage!