Title: compare date fields
Last modified: May 25, 2017

---

# compare date fields

 *  [petroglyphic](https://wordpress.org/support/users/petroglyphic/)
 * (@petroglyphic)
 * [9 years ago](https://wordpress.org/support/topic/compare-date-fields/)
 * I can’t figure out the exact format to compare two date fields. The dates are
   stored in timestamp format. I need an “if” – the end date is greater than the
   start date by more than 86399 seconds, i.e. the next day. (I’m calling Events
   Calendar posts, which used to calculate the EventDuration and seems to have stopped!)
   Or, a way to calculate the event duration and pass that to the loop.
    Please 
   help! Thanks Susan

The topic ‘compare date fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-content-shortcode_766976.svg)
 * [Custom Content Shortcode](https://wordpress.org/plugins/custom-content-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/custom-content-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-content-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-content-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-content-shortcode/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [petroglyphic](https://wordpress.org/support/users/petroglyphic/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/compare-date-fields/)
 * Status: not resolved