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

Recommended Answers

All 4 Replies

Member Avatar for b1izzard

Use built-in validators like:
compare validtor
RegularExpression validator

Use built-in validators like:
compare validtor
RegularExpression validator

Set UICulture & Culture - Globalization/Localization.

<%@ Page Language="C#" .... UICulture="en-GB" Culture="en-GB" ....%>
...
..

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.