Example: The below code is used to display the current month belonging to the particular Date.
Before clicking on button:
After clicking on button:
- Google Chrome
- Internet Explorer
- How to validate if input date (end date) in input field must be after a given date (start date) using express-validator ?
- How to validate if input date (start date) in input field must be before a given date (end date) using express-validator ?
- How to get last day of a month from date in PHP ?
- HTML | DOM Input Month name Property
- How to convert number to month name in PHP?
- HTML | DOM Input Date name Property
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. 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.