Compare date with today in asp.net

PhoenixSF

New Member
i have a \[code\]textbox\[/code\] which takes input date from user. now i want to make a \[code\]validator\[/code\] which checks either date is greater then today or not.i tried this link but it has some problems http://forums.asp.net/t/1116715.aspx/1if i give this date \[code\]25/03/2013\[/code\] it is correct but if give \[code\]01/04/2013\[/code\], it says it is less then today. **Update\[code\]<asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtReturnDate" Display="Dynamic" ErrorMessage="Date should be greater then today" ForeColor="Red" Operator="GreaterThan" ValidationGroup="VI">Date should be greater then today</asp:CompareValidator>\[/code\]**Please help me to solve this problem
 
Back
Top