GWM : Date format change in endorsement

This commit is contained in:
Gowtham M 2026-03-02 11:36:16 +05:30
parent 730ea19573
commit 1895f26ff2

View File

@ -123,8 +123,8 @@ class EndorsementController extends ResourceController
foreach ($data as $key => $row) {
$data[$key]['created_at'] = date('d-m-Y h:i A', strtotime($row['created_at']));
$data[$key]['updated_at'] = date('d-m-Y h:i A', strtotime($row['updated_at']));
$data[$key]['policy_start_date'] = date('d-m-Y h:i A', strtotime($row['policy_start_date']));
$data[$key]['policy_end_date'] = date('d-m-Y h:i A', strtotime($row['policy_end_date']));
$data[$key]['policy_start_date'] = date('d-m-Y', strtotime($row['policy_start_date']));
$data[$key]['policy_end_date'] = date('d-m-Y', strtotime($row['policy_end_date']));
}
return $this->respond(['status' => 'success','code' => 200,'data' => $data], 200);