Set timezone javascript without using any pluginsconst DATE new Date.toLocaleStringen-US, timeZone:
Set timezone javascript without using any plugins
const DATE = new Date().toLocaleString('en-US', {
timeZone: 'Asia/Jakarta'
});
console.log(DATE); //debug
document.write(JSON.stringify(DATE)); //debug dynamically print
- compatible with ANY Javascript