|
|
|
Click here to copy the following block |
declare @dt1 datetime declare @dt2 datetime
set @dt1='2003-10-06 13:17:29.327' set @dt2='10/6/03'
If @dt1=@dt2 Print '[Test1] Both dates are equal' else Print '[Test1] Both dates are not equal'
If LEFT( CONVERT(varchar, @dt1, 120), 10) =LEFT( CONVERT(varchar, @dt2, 120), 10) Print '[Test2] Both dates are equal' else Print '[Test2] Both dates are not equal'
|
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|