Back
You can take the below example as a reference:
<script src="http://www.datejs.com/build/date.js" type="text/javascript"></script><script> var mydate = new Date(form.startDate.value); var str = mydate.toString("MMMM yyyy"); window.alert(str);</script>
<script src="http://www.datejs.com/build/date.js" type="text/javascript"></script>
<script>
var mydate = new Date(form.startDate.value);
var str = mydate.toString("MMMM yyyy");
window.alert(str);
</script>
I hope this will help.
Want to know more about Java? Prefer this tutorial on Learn Java.
Want to become a Java Expert? Join Java Course now!!
31k questions
32.8k answers
501 comments
693 users