| Sender |
Chandru
|
| Recipient(s) |
dilip kumar
|
| Date |
22 Oct 2009
|
Re: hi chandhu..I need some help
|
I did'nt try i will work it and i will give the working code.
>>> On 22 Oct 2009, dilip kumar wrote:
my requirement is what ever entered date in textbox it must be not greater than today date and not less than the 3 months ago date ..and my date format is DD/MM/YYYY ..csn please help ..
this is ur sended code but it's not helping to me..
function validate() { var date = document.getElementById("textbox").value; var testdate = new date(date); var actualdate = new date();
var testmo = testdate.getMonth(); var testday = testdate.getDate();
var testmo1 = testmo-3;
if (testdate > actualdate) { alert(message); return false; } if (testmo < testmo1) { alert(message); return false; } return true; }
|