When I am using Date.now() it will return the current date and time of my local computer. If I change the date and time of my computer this will return the changed time......... I want the global time so what can i do code example
Example 1: get current time in js
<script>
var today = new Date();
var time = today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();
</script>
Example 2: calculate today date javascript
var today = new Date();