[SOLVED] Gallery Date

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Brandt
Forum Members
Forum Members
Posts: 55
Joined: Fri Mar 05, 2010 10:04 am

[SOLVED] Gallery Date

Post by Brandt »

In the Gallery Module I have placed a date in a template using

Code: Select all

{$image->filedate}
It prints the following

Code: Select all

2015-11-06 22:20:18
But I would like it to print

Code: Select all

06 november 2015
Is there a way I could change this, let's say, like the following?

Code: Select all

{$image->filedate (j F Y)}
Last edited by Brandt on Mon Nov 09, 2015 3:31 pm, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Gallery Date

Post by Rolf »

Code: Select all

{$image->filedate|date_format:'your parameters'}
Check http://php.net/manual/en/function.strftime.php
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Brandt
Forum Members
Forum Members
Posts: 55
Joined: Fri Mar 05, 2010 10:04 am

Re: Gallery Date

Post by Brandt »

Thx Rolf!

I bought you a cup of coffee!
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Gallery Date

Post by Rolf »

Thank you very much, Brandt
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “Modules/Add-Ons”