-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get date format #14
Comments
It's possible, But, the format detected is |
Not really, need a standard according to https://www.w3.org/TR/NOTE-datetime. So that format can be reused with other libraries, possibly in other languages. For example, when the back end processes a csv document, it sends the converted data with format information that the front end processes with their libraries. |
Example to use: var date = "1994-11-05 13:15:30"; var date = "1994-11-05"; var date = "11-05-1994 13:15:30"; var date = "11-05"; var date = "04 Jul 2021 19:59:09"; |
There has too many formats supported in |
Hi @sisyphsu , lets say we have csv file .... we want to format a date column .... we can improve performance if we know date format so can we get date format thanks |
I was about to start implementing the code to get the date format given the date string. Then I stopped because there are some test cases which are making trouble.
Its better to have or follow the date/time format in a project where we are defining these. |
You can declare precedence for formats. When somebody passes one string to the method, you check a list of formats by precedence. |
Hi,
I would like to be able to get the date format from a string. For example, one could add a getFormatPattern method to get a format string that can be used further for business logic.
My case:
I am doing a csv parser, I need to be able to define the data type in a column, this library could help me if it had this function.
The text was updated successfully, but these errors were encountered: