Example: It has applications such as getting the current year. It is used in websites to validate the age of the user.
Before Clicking on Button:
After clicking on Button:
- Google Chrome
- Internet Explorer
- How to get the current weeknumber of the year?
- How to get current year in PHP ?
- How to get the size of screen, current web page and browser window using jQuery?
- Get the current URL using jQuery?
- How to get the path of current script using Node.js ?
- How to get title of current HTML page using jQuery ?
- How to get the current URL using AngularJS ?
- How to get the current date and time in seconds?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.