Click or drag to resize
TransformationHelperGetDate Method
Returns date from the provided date-time value.

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 9.0.0
Syntax
C#
public string GetDate(
	Object dateTime,
	string defaultValue = "",
	string cultureCode = ""
)

Parameters

dateTime
Type: SystemObject
Date-time
defaultValue (Optional)
Type: SystemString
Default value
cultureCode (Optional)
Type: SystemString
Culture code

Return Value

Type: String
See Also