I use SQL Server 2014 Developer. Assume I have this scenario where I filter payment date of an Invoice
select *
from Invoices
where PaymentDate > '1/2/2012'
In the Invoice table, PaymentDate is in the format of 2012-01-08 00:00:00 ( YYYY-MM-DD HH:MM:SS )
But RHS operand of the where is 1/2/2012 So, how does SQL know if this in the format of M/D/YYYY or D/M/YYYY ?