Java Script

Get total no of day's in Month using Java Scripts

<script>
function daysInMonth(gMonth, gYear)
{
    return 32 - new Date(gYear, gMonth, 32).getDate();
}
var m = new Date();
var y = new Date();
document.write("Total No Of  Day's in Month "+daysInMonth(m.getMonth(), y.getFullYear()));
</script>
----------------------------By Happy Group----------------------------------------

Allow User To Enter Only Number in textbox Using Java Script






Allow User To Enter Only Text and Number in textbox Using Java Script





Comments

  1. Get all Technology Updates Learn latest technology, software development skills, b.tech, MCA and BCA computer

    programming training.

    ReplyDelete

Post a Comment