Page 1 of 1

[SOLVED] Gallery Date

Posted: Sun Nov 08, 2015 10:53 am
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)}

Re: Gallery Date

Posted: Sun Nov 08, 2015 11:29 am
by Rolf

Code: Select all

{$image->filedate|date_format:'your parameters'}
Check http://php.net/manual/en/function.strftime.php

Re: Gallery Date

Posted: Sun Nov 08, 2015 5:56 pm
by Brandt
Thx Rolf!

I bought you a cup of coffee!

Re: Gallery Date

Posted: Sun Nov 08, 2015 7:20 pm
by Rolf
Thank you very much, Brandt