Title: date_created import
Last modified: August 21, 2016

---

# date_created import

 *  Resolved [wgstjf](https://wordpress.org/support/users/wgstjf/)
 * (@wgstjf)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/date_created-import/)
 * Aryan,
 * I have to import the date_created value as well as the fields from the form. 
   I see that your script uses the now() value to populate this column. Could you
   point me in the right direction for using a field from the csv to populate the
   field instead?
 * More than happy to ‘Donate’ towards your time on this, especially as I have a
   time pressure (i.e. pre Christmas) to get this sorted!
 * Kind regards,
 * Will
 * [http://wordpress.org/plugins/gravity-forms-mass-import/](http://wordpress.org/plugins/gravity-forms-mass-import/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [azharmuhd](https://wordpress.org/support/users/azharmuhd/)
 * (@azharmuhd)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/date_created-import/#post-4419397)
 * hey Aryan,
 * plugin author has responded on other threads, your issue is related/possible 
   duplicate.
 * try these links
    [http://wordpress.org/support/topic/how-to-import-entry-date?replies=3](http://wordpress.org/support/topic/how-to-import-entry-date?replies=3)
   [http://wordpress.org/support/topic/nort-working?replies=15](http://wordpress.org/support/topic/nort-working?replies=15)
   [http://wordpress.org/support/topic/gravity-forms-mass-import-not-working-in-despite-no-obvious-issues?replies=8](http://wordpress.org/support/topic/gravity-forms-mass-import-not-working-in-despite-no-obvious-issues?replies=8)
 *  Plugin Author [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/date_created-import/#post-4419420)
 * There are two ways to do this. The first option would be to adjust the code so
   that instead of using now(), it uses a form field (which seems to be what you
   are asking). That would require code adjustment and because it’s specific to 
   you, I would not do this as an update.
 * The other option would be to create another gravity forms field in your form 
   and populate it with the dates you have in your csv. This may not work exactly
   as you may need, but I am not sure the context in which you need these dates.
 * So, because I am not going to be making any updates to the plugin and this is
   a very custom order, we can discuss this off the forum [aryanduntley@gmail.com](https://wordpress.org/support/topic/date_created-import/aryanduntley@gmail.com?output_format=md).
 *  Plugin Author [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * (@dunar21)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/date_created-import/#post-4419442)
 * For those wishing to do something similar, this is a possible solution (though
   untested at this time):
 * Try putting this as a replacement for line 422 in parcecsv.php:
 * $daterow = $row[‘actualPostDate’];
    if($daterow){$_created_date = gmdate(“Y-m-
   d H:i:s”, strtotime($daterow;));}else{$_created_date = utc_timestamp();} $wpdb-
   >query( $wpdb->prepare(“INSERT INTO $entry_tracking_table (id, form_id, date_created,
   ip, source_url, user_agent, currency, created_by, status) VALUES (%d,%d,{$_created_date},%
   s,%s,%s,%s,{$_created_by},%s)”,$_id, $_form_id, $_ip, $_source_url, $_user_agent,‘
   USD’, ‘active’));
 * For this to work you have to create a field called “actualPostDate”. You can 
   make it a hidden field if you want.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘date_created import’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gravity-forms-mass-import_2d377a.
   svg)
 * [Gravity Forms Mass Import](https://wordpress.org/plugins/gravity-forms-mass-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gravity-forms-mass-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gravity-forms-mass-import/)
 * [Active Topics](https://wordpress.org/support/plugin/gravity-forms-mass-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gravity-forms-mass-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gravity-forms-mass-import/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [aryanduntley](https://wordpress.org/support/users/dunar21/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/date_created-import/#post-4419442)
 * Status: resolved