Jump to content

template dateformat


Recommended Posts



I'm running into a problem with dateformatting.


I'm trying to format this line in the networkissues.php template:

{$issue.startdate|date_format:"%A %e %B %Y (%H:%M)"}

Input: 19/06/2012 12:00

Output should be: Tuesday 19 June 2012 (12:00)

instead it outputs: Wednesday 20 June (18:06) (which is today, timestamp apparently is now)

I noticed this problem disappears when I change the dateformat in admin to MM/DD/YYYY.


Only I want to use DD/MM/YYYY because that's what I'm used to (EU based and all that...)


Now my question is this; does anyone know how I can get this to work and still use DD/MM/YYYY in the admin area?



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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated