How can I set the minDate/maxDate for jQueryUI Datepicker using a string?

前端 未结 3 1994
执笔经年
执笔经年 2021-01-14 11:56

jQueryUI Datepicker documentation states that the minDate option can be set using \"a string in the current dateFormat\". So I\'ve tried the following to initialize datepick

3条回答
  •  余生分开走
    2021-01-14 12:14

    I found your last method to be best for IE7/8 anyway. IE returns NaN in string-fed Date functions; as soon as I parsed to numbers the problem disappeared.

提交回复
热议问题