Date time to unix timestamp:
DateTime.fromISO( date ).toUnixInteger()
Convert to different timezone
DateTime.fromISO( date, {
zone: timezone,
} ).toString()
Get users current timezone
DateTime.local().zoneName
Date time to unix timestamp:
DateTime.fromISO( date ).toUnixInteger()
Convert to different timezone
DateTime.fromISO( date, {
zone: timezone,
} ).toString()
Get users current timezone
DateTime.local().zoneName
Leave a Reply