I use Laravel with PHP from https://laravel.com/
MSSQL is a driver and works perfectly - with th exception of dates.
For some reason the project has decided that the follwoing is a universal date format
Y-m-d H:i:s 2021-01-21 12:00:00
However this does not seem to be universal as MSSQL interprets this as a US based date eg. The date above is invalid as 21 is considered the month not the day.
I will try to get them to allow date to be set to a custom format but this may take a while.
My MSSQL user is set to Language:British English which solves most of my issues, but not all.
Is it possible to in some way tell MSSQL to interpret a date like this
2021-01-22 12:00:00
as
YYYY-MM-DD HH:II:SS
instead of
YYYY-DD-MM HH:II:SS
which is what it is doing?
Can this be done on a system wide basis?