C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






View Message



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;
}






dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use