I see that you accepted the answer, but just to make sure you understand. There are two cases where dates are processed.
- American - Month / Day / Year
- European - day.month.year or day-month-year
You have a mistake because you provided the European format "07-14-2013" and there are no 14 months in a year.
The right format for you is one of the following:
14-07-2013 - Europe14.07.2013 - Europe07/14/2013 - American
Morover, to compare a datatime, it is better to use an object-oriented solution and a DataTime object. You can read it here.
source share