This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Date Display


  1. sapan
    Member

    Hello,
    i asked this question in the previous version and it was fixed and now after upgrading to the new version i need the fix again.
    Is there any way i can filter out results within a given date i.e. if my form became live on Aug 15 and today is Aug 27 the how can i view/export entries from Aug 20 to Aug 25, also i have one more suggestion. Will not be good if instead of displaying 4hors ago or 15 days ago if there is any way to display the actual date and time of the entry submitted/created and updated in the Date Created column i.e. currently in the Date Created column of form entries it shows 4 days ago but how can fix it so it should say 23 August 2012 at 10.35 PM.

    Posted 11 years ago #
  2. yuniar

    The fix is no longer required for v3.4
    You can simply filter the result using the Date Created criteria.

    Regarding the Date Created format, you can edit your "includes/entry-functions.php" file.
    Search around line 1438 for this code:

    if($column_name == 'date_created' || $column_name == 'date_updated'){
       $form_data[$i][$j] = mf_short_relative_date($row[$column_name]);
    }

    change it to become

    if($column_name == 'date_created' || $column_name == 'date_updated'){
       date('d M Y h:i A',strtotime($row[$column_name]));
    }

    MachForm Founder

    Posted 11 years ago #

RSS feed for this topic

Reply