getting the value of daterangepicker bootstrap

前端 未结 7 1047

Hi im new to using javascript and encountered a problem while using daterangepicker bootstrap. I manage do implement this demo that i got but I am stuck at getting the value of

7条回答
  •  星月不相逢
    2021-01-30 10:05

    var endDate=  $("#IDOfDateRangePicker").data('daterangepicker').endDate.format('YYYY-MM-DD');
    

    or other formats;

    .endDate.format('YYYY-MM-DD'); 
    
    .endDate.format('D MM YYYY');
    
    .endDate.format('D MMMM YYYY');
    

提交回复
热议问题