If you are running with the latest version of PHP & SQL Server on Windows. Make sure you control how dates are formatted especially for smalldatetime. If you let PHP use its built in function you could get strange results ranging from Chinese to French. Jui isn’t the same as Jul and that confuses strtotime().
Read more