I need a way to turn my 2 character string dates (i.e. ’04/10/2010′ & ’05/24/2010′) into an integers to see if one is greater than the other. If the user enters an end date that is less than the begin date I need to popup an “invalid date range” error.
Share
From what you posted your real problem is:
If so all you need to use is the Javascript Date object (how to page here).
You can use it as follows:
Note: Above code has been tested and works in IE7.
If you really feel you need an integer value, you can use the
UTCfunction to get that.