Command Reference : String and Date Function Reference
  
 
@dateval
Syntax: @dateval(str1[, fmt])
Argument 1: string, str1
Argument 2: date format string, fmt
Return: date number
Convert the string representation of a date, str, into a date number using the optional format string fmt.
Example:
@dateval("12/1/1999", "mm/dd/yyyy")
will return the date number for December 1, 1999 (730088) while
@dateval("12/1/1999", "dd/mm/yyyy")
will return the date number for January 12, 1999 (729765).
See “Dates” and “Date Formats”for additional details on date numbers and date format strings. See also @strdate.