Hi I\'m new in javascript I have such javascript code
alert(DATE.value); var d = new Date(DATE.value); var year = d.getFullYear(); var month = d.getMonth();
use .getDate instead of .getDay.
.getDate
.getDay
The value returned by getDay is an integer corresponding to the day of the week: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.