I am trying to show date after 2 years and 3 months from today on JQuery UI 1.8.10 date picker. Please suggest.
Asked
Active
Viewed 194 times
1 Answers
2
.datepicker("setDate", '+3m +2y');

Nikita Shekhov
- 493
- 3
- 11
-
This is not cross browser compatible. – Kurkula May 22 '12 at 19:35
-
1It's very strange, but this [jsFiddle](http://jsfiddle.net/shehovn/UjZ3D/1/) works only with two strings. – Nikita Shekhov May 22 '12 at 19:52
-
Works with this code $("#datepicker").datepicker({'setDate': '+3m +2y'}); $("#datepicker").datepicker('setDate', '+3m +2y'); – Kurkula May 22 '12 at 20:49