How can I format a date to be MMM/DD/YYY (Sept 25 2012)?

Credentials-NOChange ForWebAccess's Avatar

Credentials-NOChange ForWebAccess

08 Nov, 2012 03:29 PM

Folks in different countries use different date formats (m/d/y or d/m/y).

The simple solution to this (which also makes things clearer to customers I think) is to format it at:

MMM/D/YYY: Sep 25, 2012

I played around with the %m (%M %mmm %month) but couldn't find a solution.

  1. Support Staff 1 Posted by Marc Guyer on 09 Nov, 2012 08:54 PM

    Marc Guyer's Avatar

    Where do you mean? In the email templates? Which one?

  2. 2 Posted by Credentials-NOC... on 14 Nov, 2012 12:27 AM

    Credentials-NOChange ForWebAccess's Avatar

    Yes, email templates, specifically the Billing Reminder ( but I suspect it applies to all the email templates)

  3. Support Staff 3 Posted by Marc Guyer on 14 Nov, 2012 03:52 PM

    Marc Guyer's Avatar

    Then you're looking for the Smarty syntax reference for the date format.

    I think you want something like this:

    {$invoice.billingDatetime|date_format:"%b %e, %Y"}
    
  4. Dean closed this discussion on 23 Jan, 2013 05:29 PM.

Discussions are closed to public comments.
If you need help with Cheddar please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

28 Mar, 2024 10:45 PM
24 Jan, 2024 08:33 AM
11 Jan, 2024 07:13 AM
30 Nov, 2023 02:07 AM
22 Nov, 2023 08:41 AM