Good Day Experts!
I have two textboxes that accept start and end dates. I have a routine that checks if the dates are formatted in acceptable formats. That part works great. The last step of the routine I want to check if the start date is less than the end date. However, I am apparently doing something wrong since 1/1/2103 is not flagged as greater than 5/17/2013. Here is my compare:
If txtStartPW.Text.Trim > txtEndPW.Text.Trim Then
ValidationResult = "Start Date is not less than End Date. Please revise your entry."
It "feels" like it is going to be something related to the values being strings and not comparing the actual dates...but, I am not good with coding around date stuff.
Can you help?