Carbon to Rfc3339 Format $dt->toRfc3339String(); //2021-04-06T02:20:00Z 12 $dt->toRfc3339String();//2021-04-06T02:20:00Z https://carbon.nesbot.com/docs/#api-commonformats