Fix bug on create_date_from_format method