Answers for "get current year javascript on html"

31

Javascript get current year

var currentYear= new Date().getFullYear();
Posted by: Guest on July-25-2019
1

html show current year

<script>document.write(new Date().getFullYear())</script>
Posted by: Guest on March-23-2021

Code answers related to "get current year javascript on html"

Code answers related to "Javascript"

Browse Popular Code Answers by Language