JavaScript getFullYear Function

JavaScript getFullYear function is one of the Date Functions, which returns the full year from a given. We are using the getFullYear to return the year (yyyy) from the current date and time. <!DOCTYPE html> <html> <head> <title> JS </title> </head> <body> <h1> Example </h1> <script> var dt = Date(); document.write(“Date and Time : ” … Read more