You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importLuxonAdapterfrom'@date-io/luxon'importDateFnsAdapterfrom'@date-io/date-fns'constdateFns=newDateFnsAdapter()constluxon=newLuxonAdapter({locale: 'fr'})// pass french localeconstinitialLuxonDate=luxon.date('2018-10-28T11:44:00.000Z')constinitialDateFnsDate=dateFns.date('2018-10-28T11:44:00.000Z')constupdatedLuxonDate=luxon.addDays(initialLuxonDate,2)constupdatedDateFnsDate=dateFns.addDays(initialDateFnsDate,2)luxon.format(updatedLuxonDate,'fullDateTime24h')// "2018, octobre 30 11:44"dateFns.format(updatedLuxonDate,'fullDateTime24h')// "2018, October 30th 11:44"
luxon.date: returns any
dateFns.date: returns Date
I also checked moment and it also returns any.
The text was updated successfully, but these errors were encountered:
From your example:
luxon.date
: returnsany
dateFns.date
: returnsDate
I also checked
moment
and it also returnsany
.The text was updated successfully, but these errors were encountered: