Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Month Display


nevmic

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.

 

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...