11. First parse the created_at field as Carbon object.
2 $createdAt = Carbon::parse($item['created_at']);
3
42.Then you can use
5 $suborder['payment_date'] = $createdAt->format('M d Y');
1use Carbon/Carbon
2Carbon::now()->format('Y-m-d H:i:s jS F Y'); // 2021-06-21 19:24:37 21st June 2021