Answers for "moment local time showing 30 minutes default"

1

momentjs date and time string add minutes

moment(date, "DD-MM-YYYY hh:mm:ss")
                        .add(10, 'minutes')
                        .format('DD/MM/YYYY hh:mm:ss');
Posted by: Guest on May-28-2021
5

moment js convert to local timezone

// MOMENT.JS IS NO LONGER MAINTAINED - SWITCH TO DAY.JS, LUXON, ETC.

const time = moment.tz("2021-04-14T02:08:10.370Z")
const localtz = moment.tz.guess()
const date = time.clone().tz(localtz)
const formatDate = moment(date).format('MMMM Do YYYY, h:mm:ss A z')
Posted by: Guest on June-02-2021

Code answers related to "moment local time showing 30 minutes default"

Code answers related to "Javascript"

Browse Popular Code Answers by Language