We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
How to remove milliseconds from ISO formatted date using luxon
Using moment : moment().tz( 'America/New_York').format(); - o/p = 2021-02-04T07:06:52-05:00
Using Luxon: DateTime.fromJSDate(new Date(), { zone: 'America/New_York' }).toISO({ suppressMilliseconds: true })- o/p - 2021-02-04T07:06:52.914-05:00
how to remove milliseconds or any alternative to get the ISO date in the above format without millisecond in luxon
The text was updated successfully, but these errors were encountered:
As per the document { suppressMilliseconds: true } will only work if the value is 0
Sorry, something went wrong.
The following PR solves this by adding a new parameter #1412
Thank you !!!
Issue is fixed
Is it possible to add the same parameter to other format methods, like toSQL for example ?
No branches or pull requests
How to remove milliseconds from ISO formatted date using luxon
Using moment :
moment().tz( 'America/New_York').format(); - o/p = 2021-02-04T07:06:52-05:00
Using Luxon:
DateTime.fromJSDate(new Date(), { zone: 'America/New_York' }).toISO({ suppressMilliseconds: true })- o/p - 2021-02-04T07:06:52.914-05:00
how to remove milliseconds or any alternative to get the ISO date in the above format without millisecond in luxon
The text was updated successfully, but these errors were encountered: