Converts the given string to a date.

Syntax

Smartsite SXML CopyCode image Copy Code
datetime convert.todate(any value)
datetime convert.todate(any value, integer lcid)

Parameters

Name Data Type Description
value Any The value.
lcid Integer The culture id of the input string

Return Value

Data Type Description
DateTime A date if the string could be parsed, otherwise DateTime.MinValue.

Expand image Example

SXML