toDate
function, since version 1.0.0
categories: date, converting
toDate(format, dateString)
Converts input string to datetime object
parameters
- format: string - format, see this documention for list of format option
- dateString: string - string to be converted to datetime
return type
datetime
examples
toDate('Y-m-d H:i:s', '2016-01-01 15:30:00')