Converts a provided date string in a known format to a date value.

Parameters

dateString String (required) - a string containing a date

timeString String (optional) - a string containing a time

Returns

Date

Examples

DATEVALUE('2015-01-01')

// returns 2015-01-01