Top "Luxon" questions

Luxon is a date and time library for JavaScript, and the successor to Moment.

luxon convert local time to utc given a timezone

A data source has an ISO-8601 datetime field without an offset. Example: 2019-07-09T18:45 However, I know that the …

javascript luxon
How to get the start time and end time in utc of a day for a specified timezone in javascript?

As the title stated, I want to get the start time and end time of a day for certain timezone …

javascript timezone momentjs luxon
compare only dates with luxon Datetime

I have two luxon objects, let startDate = DateTime.fromISO(startDate) let someDate = DateTime.fromISO(someDate) How can I compare if …

javascript luxon
How to format a Date with Luxon?

With moment.js, you can format a date this way: How to do the same thing with Luxon? I've tried: …

javascript date luxon
How to calculate a duration between two dates in luxon?

Luxon's documentation for the Duration.fromISO method describes it as Create a Duration from an ISO 8601 duration string Nowhere is …

javascript luxon
How to use diff method in Luxon

I currently get a date from calendar control and using luxon I add days, minutes to it and change it …

javascript luxon
How to change the material-ui-pickers time-picker timezone?

Time-picker is showing local timezone, how to change that to desired timezone?

reactjs material-ui timepicker luxon
Parse Datetime string in local date format in javascript (preferably using luxon)

Suppose I have a datetime string 10/09/2019 10:03:00.000 AM. Now, if I am in USA, I'll read it as 9th October 2019 and …

javascript date datetime luxon
Why is that I'm getting "Invalid DateTime" in the following Luxon/Moment code?

const dt = DateTime.fromISO(new Date(date)) // dt => DateTime {ts: 1516876197386, zone: LocalZone, loc: Locale, invalid: "unparsable", weekData: null, …} return …

javascript momentjs luxon
Luxon.js get difference between now and input date in years

I'm using luxon.js and want to check, is the user's age is over than 21 years. Code, that i'm using …

javascript luxon