Title: String to time
Last modified: September 26, 2019

---

# String to time

 *  Resolved [jandrabek](https://wordpress.org/support/users/jandrabek/)
 * (@jandrabek)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/string-to-time/)
 * Hello, I’m trying to display post based on time. I added dynamic condition post
   time. Now I want to display post if published time is less than 3 hours starting
   from 16:00. Is this even possible? Thanks.

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

 *  Thread Starter [jandrabek](https://wordpress.org/support/users/jandrabek/)
 * (@jandrabek)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/string-to-time/#post-11974878)
 * I’m trying to figure what values are allowed. I want to hide Element if the published
   date is more than 3 hours from now.
 * Example: now is 12:00 and post was published 8:00. What conditions should I use?
 *  Plugin Author [rtowebsites](https://wordpress.org/support/users/rtowebsites/)
 * (@rtowebsites)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/string-to-time/#post-12003592)
 * Hello [@jandrabek](https://wordpress.org/support/users/jandrabek/)
 * you could use post time and String to time as condition time.
    As condition you
   can use “-3 hours” Than you can check for greater as.
    -  This reply was modified 6 years, 7 months ago by [rtowebsites](https://wordpress.org/support/users/rtowebsites/).
 *  Plugin Author [rtowebsites](https://wordpress.org/support/users/rtowebsites/)
 * (@rtowebsites)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/string-to-time/#post-12056817)
 * We close this issue. If you need any more help, just open a new issue.

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

The topic ‘String to time’ is closed to new replies.

 * ![](https://ps.w.org/dynamicconditions/assets/icon-256x256.jpg?rev=1969812)
 * [Dynamic Conditions](https://wordpress.org/plugins/dynamicconditions/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dynamicconditions/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dynamicconditions/)
 * [Active Topics](https://wordpress.org/support/plugin/dynamicconditions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dynamicconditions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dynamicconditions/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [rtowebsites](https://wordpress.org/support/users/rtowebsites/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/string-to-time/#post-12056817)
 * Status: resolved