ToDate
Converts value to date type
Inputs
ToDate(value, format, [location], [replaceInvalidWith])
value
- A value to convert into a dateformat
- Enum ‘DateFormatTemplateOption’ with the corresponding format of the value, ex. DateFormatTemplateOption.dd*month
[location]
- [optional: UTC by default**]**[replaceInvalidWith]
- [optional: null by default**]** - invalid values will be replaced with this parameter
Description
This function can also convert the DateTime value to Date (truncates Time part).
You have to select the value's actual (not output) format in the second parameter.
Last updated