943,578 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 684
  • ASP.NET RSS
Jun 8th, 2009
0

validation

Expand Post »
i just want to compare two dates both are in two text boxes in formate of dd/mm/yyyy how can i do this
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pupilstuff is offline Offline
15 posts
since Jun 2009
Jun 8th, 2009
0

Re: validation

Use the DateTime object. You can check out the DateTime object's members here: http://msdn.microsoft.com/en-us/libr...e_members.aspx
Moderator
Reputation Points: 322
Solved Threads: 28
The C# Man, Myth, Legend
Tekmaven is offline Offline
914 posts
since Feb 2002
Jun 8th, 2009
0

Re: validation

Use built-in validators like:
compare validtor
RegularExpression validator
Reputation Points: 10
Solved Threads: 7
Junior Poster
ravi89 is offline Offline
106 posts
since Jun 2009
Jun 9th, 2009
0

Re: validation

Click to Expand / Collapse  Quote originally posted by ravi89 ...
Use built-in validators like:
compare validtor
RegularExpression validator
Set UICulture & Culture - Globalization/Localization.

ASP.NET Syntax (Toggle Plain Text)
  1. <%@ Page Language="C#" .... UICulture="en-GB" Culture="en-GB" ....%>
  2. ...
  3. ..
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008
Jun 11th, 2009
0

Re: validation

You may use the compare validator. You may also convert both textbox strings to the same datetime format and then compare them using if.
Reputation Points: 3
Solved Threads: 14
Junior Poster
thewebhostingdi is offline Offline
168 posts
since Jun 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Print out SQLDataSource value to webpage
Next Thread in ASP.NET Forum Timeline: How to detect when a RadioButtonList is clicked?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC