I am getting following dates from the bootstrap date picker in my laravel backend.
[start_date] => Array
(
[year] => 2018
[month] => 2
[day] => 1
)
[end_date] => Array
(
[year] => 2018
[month] => 4
[day] => 30
)
I want to convert the date in to php date i.e
start_date = "2018-02-01";
end_date = "2018-04-30"
If anyone is providing answers please provide the specific code or links.