Title: String to time not working
Last modified: February 21, 2020

---

# String to time not working

 *  Resolved [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/string-to-time-not-working/)
 * Hi,
    just wanna report that since the last update (1.4.4) the String to time 
   condition is not working. I’ve double-checked on multiple places and it’s definitely
   not working. I’ve attached the snapshots of the condition and the debug-mode.
 * > [View post on imgur.com](https://imgur.com/6aK4qSH)
 * > [View post on imgur.com](https://imgur.com/HTvD0Go)
 * Thanks

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

 *  Thread Starter [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/string-to-time-not-working/#post-12469971)
 * Also the Between weekdays doesn’t work.
 * For example I’ve selected to hide the element between Monday and Wednesday, and
   today is Sunday but the element is showing.
 * I’ve attached the snapshot of the debug-mode.
 * > [View post on imgur.com](https://imgur.com/kPFRumK)
 * In the debug mode it says
    DynamicTag-Value:4 but today is Sunday
 * The Between days appear to be correct (Monday and Wednesday)
    Check-Value:1 Check-
   Value2:3
 * Hope this helps, thanks
 *  Plugin Author [rtowebsites](https://wordpress.org/support/users/rtowebsites/)
 * (@rtowebsites)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/string-to-time-not-working/#post-12503841)
 * Hello [@luciche](https://wordpress.org/support/users/luciche/)
 * can you have a look on general-options and say which time-format do you use?
   
   It´s possible that the plugin cant convert the date-formate to a timestamp to
   compare.
 *  Thread Starter [luciche](https://wordpress.org/support/users/luciche/)
 * (@luciche)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/string-to-time-not-working/#post-12503891)
 * [@rtowebsites](https://wordpress.org/support/users/rtowebsites/) I use personalized
   date format l j F and hour format G:i
 * I’ve always used this format
 *  Plugin Author [rtowebsites](https://wordpress.org/support/users/rtowebsites/)
 * (@rtowebsites)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/string-to-time-not-working/#post-12506357)
 * Hello [@luciche](https://wordpress.org/support/users/luciche/)
 * we have tested with your date format and with different languages. We can´t reproduce
   this issue, but have an idea what the problem could be.
    The plugin trys to convert
   the date to a unix-timestamp, so it can compare it with outer timestamp. It seems
   that this convertion fails on your system.
 * But you can change the date-format for the dynamic-tag-value, like this:
 * > [View post on imgur.com](https://imgur.com/ILHPmmM)
 * Than it should output the correct value.
 *  Plugin Author [rtowebsites](https://wordpress.org/support/users/rtowebsites/)
 * (@rtowebsites)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/string-to-time-not-working/#post-12511282)
 * Hello [@luciche](https://wordpress.org/support/users/luciche/)
 * we just added a debug-release on
    [https://github.com/RTO-Websites/dynamic-conditions/releases/tag/debug-release](https://github.com/RTO-Websites/dynamic-conditions/releases/tag/debug-release)
 * This version has the new option “Prevent date-parsing”.
    With this option the
   plugin will not try to convert the date from the tag to a timestamp. Than you
   can choose “U” as custom format in the tag and it should work. Should look like
   this:
 * > [View post on imgur.com](https://imgur.com/U08Y9p3)

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

The topic ‘String to time not working’ 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/)

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