' If the date is not valid If Not oApp.EmptyDate(tdDate) And tdDate < New Date(1927, 1, 1) Then Return False End IfThe script starts like this:
DECLARE @ModUser Int DECLARE @ModDate DateTime DECLARE @InspectionDate DateTime DECLARE @Numero Int SET @ModUser=1 SET @ModDate='2012-12-17 10:30:15' SET @InspectionDate='1-01-01 00:00:00' SET @Numero=60443However, in the .NET code, the tdDate did not go into the condition. So, it saw it as ok. My condition is to make sure the date is not empty and smaller than 1927. But, when we look at the script, it says 1-01-01 00:00:00. So, is this possible SQL Server sees that as 2001?