screen_rotation
Copied to Clipboard
<html> <head> <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> </head> <body> <div id="app"> <h3>Vue Js Get India Current Date And Time</h3> <p>{{timeZone}}</p> </div> <script type="module"> const app = new Vue({ el: "#app", data() { return { timeZone: '' } }, mounted() { this.timeZone = new Date().toLocaleString(undefined, {timeZone: 'Asia/Kolkata'}) } }); </script> </body> </html>