Suppose you are using SQL Server 2005, and you want to truncate your DATETIME value, leaving only date part of it, as follows: DATEADD ( day , DATEDIFF ( day , '19010101' , LastModifiedDate ), '19010101' ) Suppose you want to reuse this code and wrap
Read More...