Jump to content
Sign in to follow this  

Month Display

Recommended Posts

I have a payment module accepting credit cards. Right now the expiry date is display as follows:


Month 2007


example - March 2007


Is it possible to change the code to make it display:


03-March 2007


I would like to introduce the month number in the beginning.


I imagine that I have to amend this part of the code:


$expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));


Any help would be appreciated.



Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this