Reputation: 9
Is there any examples on how to return the week number of the selected date in DatePicker into another input type.
Upvotes: 0
Views: 4155
Reputation: 9
I got the solution
$( "#pickdate" ).datepicker({
onSelect: function(dateText, inst) {
alert($.datepicker.iso8601Week(new Date(dateText)))
}
});
I think this will generate a week number for sure.
Upvotes: 1