Junior Member
Junior Member
flugga   2009-08-26, 15:50
#1

How do I use the format property of the printAlbumDate function? For example, currently the date shows as: Tue 09 Sep 2008 05:42:17 AM EDT. I want it to show as just: Tue 09 Sep 2008

Member
Member
sbillard   2009-08-26, 16:03
#2

Follow the link given on the Date Format option.

Member
Member
edified   2009-10-17, 00:18
#3

More specifically printAlbumDate() uses getAlbumDate() which uses zpFormattedDate() which uses the php function strftime()

So [b]use the formatting specified on this page: http://php.net/manual/en/function.strftime.php [/b]

In your example it's printAlbumDate("","","%a %d %b %G")

printAlbumDate DOES NOT uses the php date() function that you're probably familiar with which is why "D d M Y" won't work.

Member
Member
sbillard   2009-10-17, 02:04
#4

You can also just change the Zenphoto date option. This will change all places dates are output, not just the album date.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.