Title: Date saving as a string?
Last modified: August 30, 2016

---

# Date saving as a string?

 *  [subsomatic](https://wordpress.org/support/users/subsomatic/)
 * (@subsomatic)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/date-saving-as-a-string/)
 * I’m using the plugin to import and also manually add events. I’m using this query,
   but for any event that is saved manually, it doesn’t return. I’m guessing that
   this is because the date is being saved as a string rather than a date, but I’m
   not sure.
 *     ```
       <?php $args = array(
          'post_type' => 'facebook_events',
          'posts_per_page' => -1,
          'orderby' => 'meta_value',
          'order' => 'ASC',
          'meta_query' => array(
               array(
       	'key' => 'event_starts',
       	'value' => array($minDate, $maxDate),
       	'compare' => 'BETWEEN',
       	'type' => 'DATE'
       	),
           )
       );
       ```
   
 * Any help would be greatly appreciated!
 * [https://wordpress.org/plugins/facebook-events-importer/](https://wordpress.org/plugins/facebook-events-importer/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [WPTrashPanda](https://wordpress.org/support/users/jprescher/)
 * (@jprescher)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/date-saving-as-a-string/#post-6558372)
 * Use the examples here for custom queries please – [http://wpfbevents.com/code-examples/](http://wpfbevents.com/code-examples/)

Viewing 1 replies (of 1 total)

The topic ‘Date saving as a string?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook-events-importer_212121.svg)
 * [Facebook Events Importer](https://wordpress.org/plugins/facebook-events-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook-events-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-events-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-events-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-events-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-events-importer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WPTrashPanda](https://wordpress.org/support/users/jprescher/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/date-saving-as-a-string/#post-6558372)
 * Status: not resolved