getting current time in different time zone using moment.js
Returns current time with format.
moment.tz(moment(), 'Asia/Karachi').format('DD/MM/YYYY HH:mm')
The output of the format
function is a string. The tz
function works on a moment object.
moment().tz("Europe/London")