Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: date-fns-timezone
node v11.15.0
endpoint
share
tweet
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…
Clone and edit this document