parse_datetime function

Parse datetime from strings using different formats