Last active
October 31, 2017 07:52
-
-
Save zapkub/9632a200ad36ab077bc50fe269116953 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const momentTimeZone = require('moment-timezone'); | |
function getBKKTime() { | |
const date = new Date() | |
const UTCDateString = date.toISOString() | |
const BKKDateString = moment.tz(UTCDateString, 'Asia/Bangkok').format() | |
return BKKDateString; | |
} | |
console.log(getBKKTime()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment