Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

prakash2raj's avatar

I want to get input type Date format DD/MM/YYYY to YYYY-MM-DD

The default input type date output value as DD/MM/YYYY but the request needs to convert it to YYYY-MM-DD

How can I do that in PHP, Laravel 8?

0 likes
3 replies
prakash2raj's avatar

I'm using API and have to submit the post data form but the date should be in YYYY-MM-DD format

Please or to participate in this conversation.