This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Date Created: Entries Page
Started 16 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,
KevinPosted 16 years ago # -
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
Posted 16 years ago # -
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);
Posted 16 years ago # -
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!
MikePosted 14 years ago # -
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
Posted 14 years ago #
Reply
You must log in to post.