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...






Forums » .NET » JavaScript »

Compare user date to system date


Posted Date: 07 Nov 2009      Posted By: Abhishek      Member Level: Gold     Points: 1   Responses: 4



hello friends

I have taken texbox and Calendar Control.
the date come in mm/dd/yyyy format

I want if user enter further date for current date
then message display invalid date

how can i do in javascript

Thanks & Regards
Abhishek Khandelwal
Software Developer(Jaipur)





Responses

Author: Reach2Shaik    07 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi,

refer these links
http://www.dotnetspider.com/forum/175759-compare-date-javascript.aspx
http://www.dotnetspider.com/resources/21282-Comparing-Dates-JavaScript.aspx

Don't forget to rate this answer, if it is helpful...
Regards Shaik



Author: Deepika Haridas    07 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

Hello,

You can check resources section for that.



Thanks & Regards,
Deepika
Editor

If U want to shine like a SUN..First U have to burn like the SUN!!
Need a Guide? Join my mentor program..



Author: Nikhil Gaur    07 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

look at the following link

http://www.dotnetspider.com/resources/21282-Comparing-Dates-JavaScript.aspx

Join this campus group
http://www.dotnetspider.com/sites/637/-ecb-aspdotnet.aspx

Thanks & Regards
NIks
My Software and Web Development Experience



Author: Shameer    08 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

var myDate=new Date();
myDate.setFullYear(2009,0,08);
var today = new Date();

if (myDate>today)
{
alert("Today is before 08th January 2009");
}
else
{
alert("Today is after 08th January 2009");
}



Post Reply
You must Sign In to post a response.
Next : Asp.net Application script Run in IE but Not Support Firefox 2.0
Previous : System.Web.HttpException:
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use