angularjs - How to select a week with date picker -
i'm using angular bootstrap datepicker. have 1 datepicker , need select week(sunday saturday) not day of week
for ex,
select week period popup calender .
select week period 19 july, 2015 25 july, 2015
here comes output 07/19/2015 07/25/2015
in jquery, know how it, jquery weekpicker . curious how select week using angularjs
i grateful assistance.
thanks.
calculate week date picker, can try one
$('#date').datepicker({onselect: function() { var mon = $(this).datepicker('getdate'); mon.setdate(mon.getdate() + 1 - (mon.getday() || 7)); var sun = new date(mon.gettime()); sun.setdate(sun.getdate() + 6); alert(mon + ' ' + sun); }});
see link - https://forum.jquery.com/topic/datepicker-select-week
Comments
Post a Comment