laado Posted December 10, 2009 Share Posted December 10, 2009 is there any way in which user should only enter right date in text box. like now 2009 but user should not write 2008 or any previous year. if user enter any previous year then display message invalid date. Link to comment Share on other sites More sharing options...
justsomeguy Posted December 10, 2009 Share Posted December 10, 2009 You just need to validate whatever they enter. It's easy enough to figure out what the current year is and compare that with what they entered. You should be able to find several examples of using dates in whatever language you're writing the ASP in. Link to comment Share on other sites More sharing options...
laado Posted December 11, 2009 Author Share Posted December 11, 2009 You just need to validate whatever they enter. It's easy enough to figure out what the current year is and compare that with what they entered. You should be able to find several examples of using dates in whatever language you're writing the ASP in.could u please tell me with example code. how can i write this? Link to comment Share on other sites More sharing options...
justsomeguy Posted December 11, 2009 Share Posted December 11, 2009 It depends what language you're using. If you do a search for your language and the word date you should find several examples of using dates with whatever language you're using. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.