toDate

function, since version 1.0.0
categories: date, converting

toDate(format, dateString)

Converts input string to datetime object

parameters

return type

datetime

examples

toDate('Y-m-d H:i:s', '2016-01-01 15:30:00')

Related functions:

Update your privacy settings