I can't find a vue vue way for this, but you can do it using the onSelect datapicker callback, you can set the value of the date variable in this callback.
See working code here .
I added the mounted block to my vue instance:
var elm = new Vue({ ... ... mounted () { var vm = this $('#datedate').datepicker({ onSelect: function(dateText) { vm.date = dateText } }) })
and added in the id attribute in your date entry:
<input v-model="date" name="date" class="block col-12 mb1 field" type="text" id="datedate">
EDIT
Since timepicker does not have the onSelect option that datepicker does, the solution should use the changeTime event , which is shown in the action in the "Event Example" in the demo docs timepicker>.
The code below shows the updated Vue script solutions for jQuery datepicker and timepicker:
var elm = new Vue({ ... ... mounted() { var vm = this $('input[name=date]').datepicker({ dateFormat: 'DD, MM dd', onSelect: function(dateText) { vm.date = dateText } }), $('input[name=time]').timepicker({'scrollDefault': 'now'}).on('changeTime', function() { vm.time = $('input[name=time]').val(); }) } })
And here is the new codepen checking the @saurabh datepicker solution and @BrianZ timepicker solution .
Saurabh
source share