| 1 | <?php |
||
| 5 | class LaravelEventsCalendar |
||
| 6 | { |
||
| 7 | /***************************************************************************/ |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Format a date from datepicker (d/m/Y) to a format ready to be stored on DB (Y-m-d). |
||
| 11 | * If the start date is null return today's date. |
||
| 12 | * |
||
| 13 | * @param int event id |
||
| 14 | * @return \App\Event the active events collection |
||
| 15 | */ |
||
| 16 | public static function formatDatePickerDateForMysql($DatePickerStartDate) |
||
| 29 | |||
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | } |
||
| 34 |