Hi Im trying to set the start and end date when a page loads to specific dates in Laravel 8 view.
When I load the page it just shows todays date.
\koolreport\inputs\DateRangePicker::create(array(
"name"=>"dateRange2",
"startDate"=>Carbon\Carbon::create(Carbon\Carbon::now('Australia/Melbourne')->subYear()->year, 1, 1, 0, 0, 0, 'Australia/Melbourne'),
"endDate"=>Carbon\Carbon::createMidnightDate(Carbon\Carbon::now('Australia/Melbourne')->subYear()->year, 12, 31, 'Australia/Melbourne'),
));