Below is an example of dependant datepicker using the HTML5 native datepicker, style is added for opening datepicker as soon as anywhere inside the input box is clicked Coupon End Date * end_date)->format('Y-m-d') : ''}}" class="form-control" id="end_date" name="end_date" /> Format which is shown is mm-dd-YYYY Format which goes is YYYY-mm-dd Carbon can be used to parse data into other formats $data['coupon']->start_date = Carbon::createFromFormat('m/d/Y g:i A', $data['coupon']->start_date)->format('Y-m-d');
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners