parse_date function

Parse date from strings using different formats