laxman Posted September 26, 2008 Posted September 26, 2008 I have two text boxes in which i am providing the date here i want to do date validation like start date should not more than end date this i wanted to do in windows application vb.net 2005 Quote
rfazendeiro Posted September 26, 2008 Posted September 26, 2008 well in VB you have a method called DateDiff. So in the event Leave of the enddate textbox you can use DateDiff to compare the dates. If it does not meet the requirement show a messageBox ou put an erro in a ErrorProvider Quote
Administrators PlausiblyDamp Posted September 26, 2008 Administrators Posted September 26, 2008 Something like the following should work...] If Date.Parse(.Text) > Date.Parse(.Text) Then 'error End If Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.