<p>Say you've got a credit card number with an expiration date of 05/08 - i.e. May 2008.</p>

<p>Does that mean the card expires on the morning of the 1st of May 2008, or the night of the 31st of May 2008?</p>

[{'answer_id': 54039, 'author': 'Chris Marasti-Georg', 'author_id': 96, 'author_profile': 'https://Stackoverflow.com/users/96', 'pm_score': 3, 'selected': False, 'text': '<p>In my experience, it has expired at the end of that month.  That is based on the fact that I can use it during that month, and that month is when my bank sends a new one.</p>\n'}, {'answer_id': 54041, 'author': 'David Webb', 'author_id': 3171, 'author_profile': 'https://Stackoverflow.com/users/3171', 'pm_score': 4, 'selected': False, 'text': "<p>Have a look on one of your own credit cards.  It'll have some text like <code>EXPIRES END</code> or <code>VALID THRU</code> above the date.  So the card expires at the end of the given month.</p>\n"}, {'answer_id': 54054, 'author': 'Eric Hogue', 'author_id': 4137, 'author_profile': 'https://Stackoverflow.com/users/4137', 'pm_score': 2, 'selected': False, 'text': '<p>I process a lot of credit card transaction at work, and I can tell you that the expiry date is inclusive. </p>\n\n<p>Also, I agree with Gorgapor. Don\'t write your own processing code. They are some good tools out there for credit card processing. Here we have been using <a href="http://www.mainstreetsoftworks.com/" rel="nofollow noreferrer">Monetra</a> for 3 years and it does a pretty decent job at it. </p>\n'}, {'answer_id': 54055, 'author': 'Christian Oudard', 'author_id': 3757, 'author_profile': 'https://Stackoverflow.com/users/3757', 'pm_score': 4, 'selected': False, 'text': "<p>If you are writing a site which takes credit card numbers for payment:</p>\n\n<ol>\n<li>You should probably be as permissive as possible, so that if it does expire, you allow the credit card company to catch it. So, allow it until the last second of the last day of the month.</li>\n<li>Don't write your own credit card processing code. If^H^HWhen you write a bug, someone will lose real money. We all make mistakes, just don't make decisions that turn your mistakes into catastrophes.</li>\n</ol>\n"}, {'answer_id': 54058, 'author': 'rjzii', 'author_id': 1185, 'author_profile': 'https://Stackoverflow.com/users/1185', 'pm_score': 8, 'selected': True, 'text': '<p>It took me a couple of minutes to find a site that I could source for this.</p>\n\n<blockquote>\n  <p>The card is valid until the last day of the month indicated, after the last [sic]<sup>1</sup>\n  day of the next month; the card cannot be used to make a purchase if the\n  merchant attempts to obtain an authorization. \n  - <a href="http://web.archive.org/web/20081003052424/http://cumemberscard.com/noda/CreditCardGlossary.asp" rel="noreferrer">Source</a></p>\n</blockquote>\n\n<p>Also, while looking this up, I found an interesting article on Microsoft\'s website using an example like this, exec summary: <a href="https://web.archive.org/web/20150113060002/http://support.microsoft.com/kb/210534" rel="noreferrer">Access 2000 for a month/year defaults to the first day of the month, here\'s how to override that to calculate the end of the month like you\'d want for a credit card</a>.</p>\n\n<p>Additionally, this page has <a href="http://euro.ecom.cmu.edu/resources/elibrary/everycc.htm" rel="noreferrer">everything you ever wanted to know about credit cards</a>.</p>\n\n<hr>\n\n<ol>\n<li>This is assumed to be a typo and that it should read "..., after the first day of the next month; ..."</li>\n</ol>\n'}, {'answer_id': 54069, 'author': 'Flory', 'author_id': 5551, 'author_profile': 'https://Stackoverflow.com/users/5551', 'pm_score': 0, 'selected': False, 'text': '<p>In your example a credit card is expired on 6/2008.</p>\n\n<p>Without knowing what you are doing I cannot say definitively you should not be validating ahead of time but be aware that sometimes business rules defy all logic.</p>\n\n<p>For example, where I used to work they often did not process a card at all or would continue on transaction failure simply so they could contact the customer and get a different card.</p>\n'}, {'answer_id': 54078, 'author': 'Jack Snipes', 'author_id': 1382, 'author_profile': 'https://Stackoverflow.com/users/1382', 'pm_score': 3, 'selected': False, 'text': '<p>According to Visa\'s "<a href="http://usa.visa.com/download/merchants/chargeback-management-guidelines-for-visa-merchants.pdf" rel="nofollow noreferrer">Card Acceptance and Chargeback Management Guidelines for Visa Merchants</a>"; "Good Thru" (or "Valid Thru") Date is the expiration date of the card:</p>\n\n<blockquote>\n  <p>A card is valid through the last day of the month shown, (e .g ., if\n  the Good Thru date is 03/12,the card is valid through March 31, 2012\n  and expires on April 1, 2012 .)</p>\n</blockquote>\n\n<p>It is located below the embossed account number. <strong>If the current transaction date is after the "Good Thru" date, the card has expired.</strong></p>\n'}, {'answer_id': 1230935, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': '<p>lots of big companies dont even use your expiration date anymore because it causes auto-renewal of payments to be lost when cards are issued with new expiration dates and the same account number.  This has been a huge problem in the service industry, so these companies have cornered the card issuers into processing payments w/o expiration dates to avoid this pitfall.  Not many people know about this yet, so not all companies use this practice.</p>\n'}, {'answer_id': 1625385, 'author': 'Michael Grosser', 'author_id': 196695, 'author_profile': 'https://Stackoverflow.com/users/196695', 'pm_score': 1, 'selected': False, 'text': "<p>I had a Automated Billing setup online and the credit card said it say good Thru 10/09, but the card was rejected the first week in October and again the next week. Each time it was rejected it cost me a $10 fee. Don't assume it good thru the end of the month if you have automatic billing setup. </p>\n"}, {'answer_id': 29621817, 'author': 'wizardwerdna', 'author_id': 1243227, 'author_profile': 'https://Stackoverflow.com/users/1243227', 'pm_score': 2, 'selected': False, 'text': '<p>How do time zones factor in this analysis.  Does a card expire in New York before California?  Does it depend on the billing or shipping addresses?</p>\n'}]
['https://Stackoverflow.com/questions/54037', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/797/']