The proper way to format credit card expiration dates:
09/11
Currently Commerce Implements:
September 2011
Patch implements this per the screenshot provided.
Source:
#6
http://uxdesign.smashingmagazine.com/2011/04/06/fundamental-guidelines-o...
| Comment | File | Size | Author |
|---|---|---|---|
| credit-card-clean-up.patch | 1.78 KB | thill_ | |
| post-patch.jpg | 14.67 KB | thill_ |
Comments
Comment #1
Bojhan commentedLooks good, converting numbers to the corresponding month is strangely enough not a thing our brain does seamlessly. Given that in this particular instance you would most likely go from your card or for our more intermediate/expert shoppers by memory - this would be a good change.
Comment #2
rszrama commentedAlrighty, gave this a review. We need to preserve the two digit and four digit year because that's how it currently works (and what most payment gateways expect to receive). Also, I added a span around the / between the month and year so it can more easily be targeted for theming. By default, I'm just tacking a 3px margin to the right so it pads properly with the year select in relation to the month select.
Commit: http://drupalcode.org/project/commerce.git/commitdiff/a83745b