dynamic time javascript

Solutions on MaxInterview for dynamic time javascript by the best coders in the world

showing results for - "dynamic time javascript"
Jonas
02 Nov 2019
1<p id="GetCurrentDateCalendar"></p>
2
3<script>
4var Calendar = new Date();
5
6var Currentmos   = Calendar.monthNames = ["January", "February", "March", "April", "May", "June",
7  "July", "August", "September", "October", "November", "December"
8];
9var Currentdate  = Calendar.getDate();
10var Currentyear  = Calendar.getFullYear();
11
12document.getElementById("GetCurrentDateCalendar").innerHTML = 
13
14Currentmos[Calendar.getMonth()] +' '+ Currentdate  +' '+ Currentyear;
15
16</script>