dateTimeFromString function
Return DateTime
from string
using supplied format
or defaultDateTimeFormat = 'yyyy-MM-dd HH:mm:ss'`
Implementation
DateTime dateTimeFromString(String string,
{String format = defaultDateTimeFormat}) =>
DateFormat(format).parse(string);