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


  1. otooles
    Member

    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

    Posted 16 years ago #
  2. redityo

    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 #
  3. otooles
    Member

    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 #
  4. msfbiz
    Member

    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

    Posted 14 years ago #
  5. yuniar

    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 #

RSS feed for this topic

Reply