Title: Default value
Last modified: July 30, 2017

---

# Default value

 *  Resolved [bertl111](https://wordpress.org/support/users/bertl111/)
 * (@bertl111)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/default-value-8/)
 * Hello,
 * I want to show in the datepicker field a default value (today). How can I achieve
   this? Would be great if you can help me.
 * Thanks and best regards
 * Ben

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

 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/default-value-8/#post-9363979)
 * Hi Ben,
 * Please provide me the URL so i can check the requirements well.
 * Thanks,
    Fahad
 *  Thread Starter [bertl111](https://wordpress.org/support/users/bertl111/)
 * (@bertl111)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/default-value-8/#post-9364819)
 * Hi and thanks for your help!
 * The URL is [http://123findu.com/](http://123findu.com/) and by clicking on “Weitere
   Suchkriterien” the search fields incl. date field appear.
 * There I want to insert in the left field “Datum von…” the actual date (today)
   and in the right field “…bis” todays date but one year in advance (So both fields
   always cover a date range of one year).
 * Would be great if you can have a look.
 * Thanks a lot
 * Ben
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/default-value-8/#post-9370540)
 * Dear Ben,
 * This is how you can set your required date in somewhere your footer.php like 
   this
 * <script>
 * jQuery(“#yourinput”).datepicker( “setDate” , “7/11/2011” );
 * </script>
 *  Plugin Author [Fahad Mahmood](https://wordpress.org/support/users/fahadmahmood/)
 * (@fahadmahmood)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/default-value-8/#post-9370551)
 * And it’s 2nd part of your question:
 * How to set future date with next year, right?
 * <script>
 * jQuery(“#yourinput”).datepicker( “setDate” , new Date(2018,8,01) );
 * </script>
 *  Thread Starter [bertl111](https://wordpress.org/support/users/bertl111/)
 * (@bertl111)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/default-value-8/#post-9373399)
 * Hi and thanks a lot for your answer.
    I’ll try it.
 * Best regards
 * Ben

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

The topic ‘Default value’ is closed to new replies.

 * ![](https://ps.w.org/wp-datepicker/assets/icon-256x256.gif?rev=2286804)
 * [WP Datepicker](https://wordpress.org/plugins/wp-datepicker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-datepicker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-datepicker/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-datepicker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-datepicker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-datepicker/reviews/)

## Tags

 * [default](https://wordpress.org/support/topic-tag/default/)

 * 5 replies
 * 2 participants
 * Last reply from: [bertl111](https://wordpress.org/support/users/bertl111/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/default-value-8/#post-9373399)
 * Status: resolved