mholt / PapaParse

Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input

Home Page:http://PapaParse.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Autodetect of date formats

eduo opened this issue · comments

Hi.

What is the current logic for parsing dates? I'm getting dates in a slashed datetime format like "08/01/2019 10:42:00" and they're not being parsed, which I'm not surprised about.

How would I go about adding this as a recognizable format? I'm interested because there's a bug in the (unchangeable) system being used to generate these CSVs where sometimes the whole file would use US format (mm/dd/yyyy HH:MM:SS) and sometimes international (dd/mm/yyyy HH:MM:SS) and part of figuring out what it is to flag if for the user is that dates would error out.