Formats the date time using specified formatting pattern with the current culture settings.

Syntax

Smartsite SXML CopyCode image Copy Code
string locale.formatdatetimecustom(datetime value, string format)
string locale.formatdatetimecustom(datetime value, string format, string culture)

Parameters

Name Data Type Description
value DateTime The value.
format String The format.
culture String The culture.

Return Value

Data Type Description
String String

Expand image Examples

SXML