Parse a date/time string using the best method available
