Hi,
In the admin area when viewing entries... is it possible to display the actual date the record was created.
Currently is displays how long ago the record was created. For example "1 weeks ago" instead of "2008-09-07"
Thanks,
Kevin
Started 3 years ago by otooles | 5 posts |
Hi,
In the admin area when viewing entries... is it possible to display the actual date the record was created.
Currently is displays how long ago the record was created. For example "1 weeks ago" instead of "2008-09-07"
Thanks,
Kevin
Hi ..
You can edit manage-entries.php files on your machform directory and make this following change.
Edit line 346 from
$form_data[$i][$j] = short_relative_date($form_data[$i][$j]);
to
$form_data[$i][$j] = substr(($form_data[$i][$j]),1,10);MachForm Support
Hi,
Many thanks. I tweaked the code you provided to display the date correctly.
$form_data[$i][$j] = substr(($form_data[$i][$j]),0,10);
That's great and it works.
What is the way to show the date in the entries page with the following format?
DD/MM/YYYY hh:mm
Thanks!
Mike
You can replace the above code with this one:
$form_data[$i][$j] = date("d/m/Y H:i",strtotime($form_data[$i][$j]));MachForm Founder
You must log in to post.