How do Get month using javascript
In the java script we can using getMonth() function which is used to get current month.Program
<html> <body> <script type="text/javascript"> d=new Date(); ch=d.getMonth(); document.write(ch); </script> </body> <html> |
Output:
In this program The program will return only numeric value if it is 2 then month is march so you can using this is coding you can find current month.
0 comments:
Post a Comment