Title: exception between two dates / years
Last modified: July 21, 2017

---

# exception between two dates / years

 *  Resolved [alexvds](https://wordpress.org/support/users/alexvds/)
 * (@alexvds)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/exception-between-two-dates-years/)
 * Dear sir,
 * Is it possible to make an acception between two dates?
    I have the following,
   but this is’nt working:
 * else if (fieldname30==58) && (fieldname5=between(date 01/01/2000, date 30/12/
   20017))
    return 8;
 * I hope that the meaning is clear.
    Can you please advise me?
 * Thanks!

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/exception-between-two-dates-years/#post-9340620)
 * Hello,
 * Your code includes multiple syntax errors, please, remember that the programming
   language supported by the browsers is javascript, and the piece of code you are
   trying to use is not a valid javascript code. Please, modify the condition as
   follows:
 * `if(fieldname30 == 58 && FLOOR((new Date('01/01/2000')) / 86400000) <= fieldname5&&
   fieldname5 <= FLOOR((new Date('12/30/2017')) / 86400000))`
 * If you need additional help implementing your project, I can offer you a custom
   coding service from my private website:
 * [http://cff.dwbooster.com/customization](http://cff.dwbooster.com/customization)
 * Best regards.
 *  Thread Starter [alexvds](https://wordpress.org/support/users/alexvds/)
 * (@alexvds)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/exception-between-two-dates-years/#post-9340700)
 * Thanks, this is cool!

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

The topic ‘exception between two dates / years’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [alexvds](https://wordpress.org/support/users/alexvds/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/exception-between-two-dates-years/#post-9340700)
 * Status: resolved