


The user can then override these if necessary. When you do enter a new value into your input and then use ('deliveryTime').val () you will see that your new value is the actual value of the text inside the input field.
Jquery datepicker setdate does not set correctly code#
Below is the code I am using please check and tell me where I am doing wrong. I mean is this what happens with dateFormat: 'yy-mm-dd' (defaultDate's date was automatically set to the same date specified in setDate) what I think is, UI DatePicker shows defaultDate's date (which should be set to the same date specified in setDate). A user would then click inside the input box to call datetimepicker, then the default date and time would appear on datetimepicker. I am trying to set the jquery datepicker date format but it is not working, I have read few posts and answer already but none of them worked for me. I have a situation where I'm trying to use Trent Richardson's datetimepicker JQuery extension to have users select dates and times in one go.īut before that, I want to set the date and time so that the datetimepicker's input box displays a default date and time which would be set from the server.
