I have the following scenario, when I run this statement in SQL Server 2014:
set dateformat ymd;
select cast('1315/06/31' as date )
'1315/06/31' is the persian calendar.
I've received this:
Error:Conversion failed when converting date and/or time from character string.
But if I run this:
set dateformat ymd;
select cast('1394/07/21' as date )
it will return the correct value.
Can someone please explain why I'm getting an error in the first case?