Author Topic: Remove Hours, Minutes and Seconds from date [SOLVED]  (Read 3094 times)

0 Members and 1 Guest are viewing this topic.

Offline Pedrocas

  • Newbie
  • *
  • Posts: 22
    • View Profile
Remove Hours, Minutes and Seconds from date [SOLVED]
« on: June 11, 2009, 08:35:27 PM »
Hi all,

Can someone please tell me how can I remove the Hours, Minutes and Seconds from the date field?
I don't want them to appear, only the regular date.
Thanks in advance for any help.

Regards,
« Last Edit: June 11, 2009, 09:32:07 PM by pumizo »

Offline rustynet

  • Addicted member
  • ******
  • Posts: 1.031
  • {if msg}{msg}{endif msg}
    • View Profile
    • rustynet.de
Re: Remove Hours, Minutes and Seconds from date
« Reply #1 on: June 11, 2009, 09:06:06 PM »
try this:

edit your functions.php
find:
Code: [Select]
"image_date" => format_date($config['date_format']." ".$config['time_format'],$image_row['image_date']),
replace with this code:
Code: [Select]
"image_date" => format_date($config['date_format'],$image_row['image_date']),
good luck

Offline Pedrocas

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Remove Hours, Minutes and Seconds from date
« Reply #2 on: June 11, 2009, 09:31:51 PM »
Worked perfectly!  :D
Thank you very much for your help...