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...

CommentFileSizeAuthor
credit-card-clean-up.patch1.78 KBthill_
post-patch.jpg14.67 KBthill_

Comments

Bojhan’s picture

Looks 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.

rszrama’s picture

Status: Needs review » Fixed

Alrighty, 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

Automatically closed -- issue fixed for 2 weeks with no activity.