StringToDate
Alias:StringToDate
, ConvertStringToDate
, ToDate
Output:SCLDateTime
Converts a date to the specified format, yyyyMMddHHmm by default. If no date is specified, returns the current time.
Parameter | Type | Required | Position | Default Value | Example | Summary |
---|---|---|---|---|---|---|
Date String | string | ✔ | 1 | 2020/11/22 20:55:11 | The string to convert to DateTime | |
InputFormat Format | string | 2 | Will use DateTime to try and convert. | yyyy/MM/dd HH:mm:ss | The input format to use for conversion. If not set, will use DateTime.Parse by default. | |
Culture | string | 3 | Current culture | en-GB | The culture to use for date conversion. Default is current culture. |
Examples​
SCL​
StringToDate '2020/10/20 20:30:40'
Expected Output​
2020-10-20T20:30:40.0000000