Im wondering if there is a regular expression pattern that will validate if a credit card expiration date is before todays date.
In my form i have users entering in credit card expiration dates, and need some sort of client validation as we use a direct post API with a gateway provider and no server side validation can occur during this process.
The date fields are in 2 seperate fields with month and year but we need to ensure that we catch them before they are submitted to the gateway incase it fails, as the gateway returns ugly string messages that we cant avoid.
Any ideas on this would be greatly appreciated.