I am using moment-timezone
I have datetime with timezone string like below,
- 02:10:02 EST 07/06/2018 (America/New_York)
- 02:10:02 MST 07/06/2018 (America/Denver)
- 02:10:02 CST 07/06/2018 (America/Chicago)
- 02:10:02 PST 07/06/2018 (America/Los_Angles)
For above four strings I am able to convert to moment by doing just like
const momentTz = require('moment-timezone');
momentTz('02:10:02 EST 07/06/2018');
- 02:10:02 IST 07/06/2018 (Asia/Calcutta)
- 02:10:02 SGT 07/06/2018 (Asia/Singapore)
But When I am doing for singapore timezone string momentTz('02:10:02 SGT 07/06/2018');
It's giving me invalid date error.
Can you please help me with this, I need to convert this kind of datetime with timezone string to moment ?
I have datetime strings in different timezones.