Error thrown

Call to undefined function stringToDate()