
Dave
Staff
/ Moderator

Dec 22, 2008, 12:23 PM
Post #9 of 18
(4607 views)
Shortcut
|
|
Re: [virgodesign] Date format in ListPage field
[In reply to]
|
Can't Post
|
|
Hi Avrom, Sure, here's how to make the change globally. - Open /lib/menus/default/list_functions.php - Search for "Y-m-d" and find this code
if(@$schema[$fieldname]['type'] == 'date' && @!$schema[$fieldname]['showTime']) { $value = date("Y-m-d", strtotime($record[$fieldname])); } - Remove the code in red so you're left with this:
if(@$schema[$fieldname]['type'] == 'date') { $value = date("Y-m-d", strtotime($record[$fieldname])); } Hope that helps! Let me know if that works for you. :) Dave Edis - Senior Developer interactivetools.com
|