Results 1 to 1 of 1
Jun 11, 2007, 19:06 #1
- Join Date
- May 2007
- 0 Post(s)
- 0 Thread(s)
get the nombor of month between two date
hi there, i wan to do a validation to block the user to select the date from last month or any previous month using javasscript.if use asp server side i can find the difference of total month between two date.i need to compare the current system date with the start date that input by the user.
but quite poor in JS...dont know how to write.
the asp is:
if datediff("m",startdate,date())>="1" then...
alert("cannot choose the date form previous month")
hope can hear from u all soon.thanx