validation

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2009
Posts: 11
Reputation: pupilstuff is an unknown quantity at this point 
Solved Threads: 0
pupilstuff pupilstuff is offline Offline
Newbie Poster

validation

 
0
  #1
Jun 8th, 2009
i just want to compare two dates both are in two text boxes in formate of dd/mm/yyyy how can i do this
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 898
Reputation: Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light Tekmaven is a glorious beacon of light 
Solved Threads: 27
Moderator
Tekmaven's Avatar
Tekmaven Tekmaven is offline Offline
The C# Man, Myth, Legend

Re: validation

 
0
  #2
Jun 8th, 2009
Use the DateTime object. You can check out the DateTime object's members here: http://msdn.microsoft.com/en-us/libr...e_members.aspx
-Ryan Hoffman

.NET Specialist / Webmaster, Extended64.com.
Please do not email or PM me with support questions. Please direct them to the forums instead.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 28
Reputation: ravi89 is an unknown quantity at this point 
Solved Threads: 4
ravi89 ravi89 is offline Offline
Light Poster

Re: validation

 
0
  #3
Jun 8th, 2009
Use built-in validators like:
compare validtor
RegularExpression validator
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,612
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 463
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: validation

 
0
  #4
Jun 9th, 2009
Originally Posted by ravi89 View Post
Use built-in validators like:
compare validtor
RegularExpression validator
Set UICulture & Culture - Globalization/Localization.

  1. <%@ Page Language="C#" .... UICulture="en-GB" Culture="en-GB" ....%>
  2. ...
  3. ..
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 124
Reputation: thewebhostingdi has a little shameless behaviour in the past 
Solved Threads: 11
thewebhostingdi thewebhostingdi is offline Offline
Junior Poster

Re: validation

 
0
  #5
Jun 11th, 2009
You may use the compare validator. You may also convert both textbox strings to the same datetime format and then compare them using if.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC