Title: Setting date limit
Last modified: July 27, 2017

---

# Setting date limit

 *  Resolved [user10522three](https://wordpress.org/support/users/zorrohere/)
 * (@zorrohere)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/setting-date-limit/)
 * Hi,
 * Until now I never paid attention to date field, how can I set a date limit for
   date field? For example if I want to use date field for date of birth etc. At
   this moment date field is showing future dates as well.

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

 *  Plugin Author [PressTigers](https://wordpress.org/support/users/presstigers/)
 * (@presstigers)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/setting-date-limit/#post-9358028)
 * Hello [@zorrohere](https://wordpress.org/support/users/zorrohere/),
 * Yes, you can set the date limit of the date picker input. But for this, you have
   to write the custom code for this as we are using the third party date picker
   script library.
 * Please add the following datepicker attribute in the **simple-job-board-public.
   js** file(simple-job-board/public/js) below line # **78** and set the date range
   according to your requirements.
 *     ```
       yearRange: "c-40:c-10"
       //minDate: -40,
       //maxDate: -10
       ```
   
 * We are also sharing a link as a reference.
 * **Note:** Modifications in plugin core files will be overridden when you update
   the plugin. SO, override this script files in your child theme or take backup
   of these files and then update the plugin.
 * Thanks for reaching us out. Let us know if you need our further assistance.
 * Regards,
    PressTigers
    -  This reply was modified 8 years, 10 months ago by [PressTigers](https://wordpress.org/support/users/presstigers/).
    -  This reply was modified 8 years, 10 months ago by [PressTigers](https://wordpress.org/support/users/presstigers/).
 *  Thread Starter [user10522three](https://wordpress.org/support/users/zorrohere/)
 * (@zorrohere)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/setting-date-limit/#post-9358297)
 * Thanks alot
 *  Thread Starter [user10522three](https://wordpress.org/support/users/zorrohere/)
 * (@zorrohere)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/setting-date-limit/#post-9361038)
 * Hi again,
 * Just to let you know, to change datepicker settings I didn’t have to override
   your entire script, I mean I tried to but I was getting errors such as
 * `ReferenceError: application_form is not defined[Learn More] simple-job-board-
   public.js:284:17`
 * So I just stopped overriding and set datepicker values in my default script.
 *     ```
           $('.sjb-datepicker').datepicker({
               dateFormat: 'dd-mm-yy',
               changeMonth: true,
               changeYear: true,
               minDate: "-60Y",
               maxDate: "-17Y",
           });
       ```
   
 *  Thread Starter [user10522three](https://wordpress.org/support/users/zorrohere/)
 * (@zorrohere)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/setting-date-limit/#post-9361039)
 * EDIT: duplicate post.
    -  This reply was modified 8 years, 10 months ago by [user10522three](https://wordpress.org/support/users/zorrohere/).

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

The topic ‘Setting date limit’ is closed to new replies.

 * ![](https://ps.w.org/simple-job-board/assets/icon-256x256.png?rev=1829069)
 * [Simple Job Board](https://wordpress.org/plugins/simple-job-board/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-job-board/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-job-board/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-job-board/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-job-board/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-job-board/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [user10522three](https://wordpress.org/support/users/zorrohere/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/setting-date-limit/#post-9361038)
 * Status: resolved