Add formating method to parsing a date