Title: wcff datepicker value when validating
Last modified: December 6, 2016

---

# wcff datepicker value when validating

 *  [soowakowy](https://wordpress.org/support/users/soowakowy/)
 * (@soowakowy)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/wcff-datepicker-value-when-validating/)
 * Hi,
    I’am using 2 wcff datepickers in woo-commerce product page. I want to count
   the days difference before sending product to the basket. I am tryin to check
   the values in wccpf-front-end.js validation part with the following code var 
   e_date = $(‘input[name=end_date]’).datepicker().val(); For some reason the var
   e_date allways contains forelast value of the datepicker and not the last selected
   date before the validation was fired. Any help to solve this will be appreciated.
   Thanks in advance & kind regards from Brooks

Viewing 1 replies (of 1 total)

 *  [sarkparanjothi](https://wordpress.org/support/users/sarkparanjothi/)
 * (@sarkparanjothi)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/wcff-datepicker-value-when-validating/#post-8609924)
 * Sorry for the delay, we check that scenario it’s working great, can you try `
   e_date = $(‘input[name=end_date]’).val();` instead of `e_date = $(‘input[name
   =end_date]’).datepicker().val();`

Viewing 1 replies (of 1 total)

The topic ‘wcff datepicker value when validating’ is closed to new replies.

 * ![](https://ps.w.org/wc-fields-factory/assets/icon-128x128.jpg?rev=2738843)
 * [WC Fields Factory](https://wordpress.org/plugins/wc-fields-factory/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-fields-factory/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-fields-factory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-fields-factory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-fields-factory/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [sarkparanjothi](https://wordpress.org/support/users/sarkparanjothi/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/wcff-datepicker-value-when-validating/#post-8609924)
 * Status: not a support question