Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm implementing part of a payment process for a website and am just putting together the enter card details screen (card number, card holder's name, card start/expiry dates etc.).

I'm implementing the card start/expiry dates as month and year dropdowns but am not sure which years I should cover to ensure no one is unable to enter their details.

Does anyone have any information as to how long cards are issued for so as to determine the earliest possible start year and latest possible end year?

Also do I need to worry about any overlap of the current date. e.g. in December 2010 is it possible someone may have a valid card with a start date of January 2010?

share|improve this question
FYI, the start date has no value of any kind. I wouldn't even bother capturing it. – John Conde Aug 6 '10 at 18:13

What I've done is simply include the current year + 20 as a dropdown selection. You can also simply allow the user to enter a numeric entry of 4 (or even 2) digits for the year and you're covered.

"Maximum Year in Expry Date of Credit Card" on sister site Stack Overflow discusses this pretty well.

share|improve this answer
The second comment should have been an answer, on that question :) – Tim Post Aug 6 '10 at 17:23
I think I agree. ;) – John Conde Aug 6 '10 at 18:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.