1date('d-m-Y', strtotime($user->from_date));
2/**
3or
4**/
5date_format($user->from_date,'D M Y')
1//
2$editData->hld_end_date ? date('d-m-Y',strtotime($editData->hld_end_date)) : null // bydefault null
3
4date('d-m-Y',strtotime(str_replace('/', '-', $editData->hld_end_date) //bydefault value is null then 01-01-1970
5
6date_format(date_create($editData->hld_end_date),'d-m-Y') //bydefault value is null then Today date
7
8$editData->hld_end_date->format('d-m-Y') // null error
9
10\Carbon\Carbon::parse($editData->hld_end_date)->format('d/m/Y') //bydefault value is null then 01-01-1970
11//$uj@y
1{{date_format($data->con_date_maintained,'D M Y')}}
2
3{{ $data->con_wash_start_date == null ? date_format($data->con_date_maintained,'D M Y') : "-" }}
4//$uj@y