daterangepicker format dd/mm/yyyy code example
Example 1: php date format dd/mm/yyyy
date("d/m/Y", strtotime($str));
Example 2: bootstrap datepicker format dd-mm-yyyy
<input type="text" value="02/16/13" data-date-format="mm/dd/yy" id="dp2">
date("d/m/Y", strtotime($str));
<input type="text" value="02/16/13" data-date-format="mm/dd/yy" id="dp2">