Parses date string according to date format.
external static DateTime parseDate(String dateStr, String dateFormat);