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,

  1. select week period popup calender .

  2. select week period 19 july, 2015 25 july, 2015

  3. 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

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -