> How do get month using javascript ~ Online tutorial

How do get month using javascript

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.

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: