How To: Use Moment() timezone in schedulers

Description

While using moments you have an option to convert it to the time zone of your choice with the Nominal time in UTC. Use the following to convert moment derived time into the preferred time zone, the example below converts to IST Tz. 

moment().subtract(7, 'days').tz('Asia/Kolkata').format('YYYY-MM-DD')

For other time zones please refer to http://momentjs.com/timezone/

 

 

 

Have more questions? Submit a request

Comments

Powered by Zendesk