RunKit + npm: date-fns-timezone

node v11.15.0
endpointsharetweet
const { formatToTimeZone } = require('date-fns-timezone') let date = new Date() const format = 'D.M.YYYY HH:mm:ss [GMT]Z (z)' const output = formatToTimeZone(date, format, { timeZone: 'Asia/Calcutta' })
Created from: https://npm.runkit.com/date-fns-timezone
Loading…