I'm trying to set come dates as values by default when the bootstrap-datetimepicker gets initialised. The thing is that I need to set the current date as date_till.val() and the date_from.val() must be a 'two-week-ago' date. And I need to make it in the format of 'DD.MM.YYYY'. How would I do that?
I have something like this now but it sets only the current date:
var CurrentDate = new Date();
    $('.date_from').val(CurrentDate);
    $('.date_till').val(CurrentDate);
 
     
     
     
     
    