954,580 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

validation

i just want to compare two dates both are in two text boxes in formate of dd/mm/yyyy how can i do this

pupilstuff
Newbie Poster
15 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

Use the DateTime object. You can check out the DateTime object's members here: http://msdn.microsoft.com/en-us/library/system.datetime_members.aspx

Tekmaven
Software Architect
Moderator
1,274 posts since Feb 2002
Reputation Points: 322
Solved Threads: 28
 

Use built-in validators like:
compare validtor
RegularExpression validator

ravi89
Junior Poster
114 posts since Jun 2009
Reputation Points: 11
Solved Threads: 13
 
Use built-in validators like: compare validtor RegularExpression validator

Set UICulture & Culture - Globalization/Localization.

<%@ Page Language="C#" .... UICulture="en-GB" Culture="en-GB" ....%>
...
..
__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

You may use the compare validator. You may also convert both textbox strings to the same datetime format and then compare them using if.

thewebhostingdi
Junior Poster
168 posts since Jun 2009
Reputation Points: 3
Solved Threads: 14
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You