You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a newbie to Laravel and Laravel-OCI8 and want to know the best way to set the date format for the entire website. In my controller, I used DB::SetDateFormat('MM/DD/YYYY') to set the date format and was able to insert , update and display date fields with the format (but not sure whether this is the best approach). For some unknown reason, the dateformat is now set to YYYY-MM-DD HH24:MI:SS and the insert and update fails. Previously, I was using Laravel 7 and now has upgraded to Laravel 8. Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm a newbie to Laravel and Laravel-OCI8 and want to know the best way to set the date format for the entire website. In my controller, I used DB::SetDateFormat('MM/DD/YYYY') to set the date format and was able to insert , update and display date fields with the format (but not sure whether this is the best approach). For some unknown reason, the dateformat is now set to YYYY-MM-DD HH24:MI:SS and the insert and update fails. Previously, I was using Laravel 7 and now has upgraded to Laravel 8. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions