{{getMsg('Help_YouAreHere')}}:
/
{{page.title}}
{{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}}
{{helpModel.downloadHelpPdfDataStatus}}
ToDate
ToDate will try to interpret the dateString with the given pattern. If it fails to create a date for that string the function date(dateString) will be called to try to create a date object with the patterns these function uses. If the dateString is null then null will be returned. If the pattern is null or empty only date(dateString) will be called.
Usage:
ToDate( dateString, pattern )
Parameters:
dateString | The string that represents the date which should be interpreted with the given pattern. |
---|---|
pattern | The pattern with which the given date string should be interpreted. The definition for the patterns allowed can be found here. |
Returns:
Date
Examples:
toDate( '2005-12-24', 'yyyy-MM-dd')
Returns a date value for December 24th 2005.