[dba-SQLServer] Strip time portion from GETDATE()

Joe Rojas JRojas at tnco-inc.com
Fri Jun 3 15:09:17 CDT 2005


Thanks!
This looks like what I was looking for!

JR
-----Original Message-----
From: Mike & Doris Manning [mailto:mikedorism at verizon.net]
Sent: Friday, June 03, 2005 3:46 PM
To: dba-sqlserver at databaseadvisors.com
Subject: RE: [dba-SQLServer] Strip time portion from GETDATE()

Convert(datetime, GETDATE(), 112)

Mike and Doris Manning
mikedorism at verizon.net


-----Original Message-----
From: dba-sqlserver-bounces at databaseadvisors.com
[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of Joe Rojas
Sent: Friday, June 03, 2005 2:08 PM
To: 'dba-sqlserver at databaseadvisors.com'
Subject: [dba-SQLServer] Strip time portion from GETDATE()


Hi all!

SS7

Is there an easier way to strip the time portion from the value returned
from GETDATE() other than CONVERT(datetime, Month(GETDATE()) + '/' +
Day(GETDATE()) + '/' + Year(GETDATE()) ?

Thanks!
JR




This electronic transmission is strictly confidential to TNCO, Inc. and
intended solely for the addressee. It may contain information which is
covered by legal, professional, or other privileges. If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy, or take any action in reliance on this
transmission. If you have received this transmission in error, please notify
the sender as soon as possible and destroy this message. While TNCO, Inc.
uses virus protection, the recipient should check this email and any
attachments for the presence of viruses. TNCO, Inc. accepts no liability for
any damage caused by any virus transmitted by this email.
_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com



_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com



This electronic transmission is strictly confidential to TNCO, Inc. and
intended solely for the addressee. It may contain information which is
covered by legal, professional, or other privileges. If you are not the
intended addressee, or someone authorized by the intended addressee to
receive transmissions on behalf of the addressee, you must not retain,
disclose in any form, copy, or take any action in reliance on this
transmission. If you have received this transmission in error, please notify
the sender as soon as possible and destroy this message. While TNCO, Inc.
uses virus protection, the recipient should check this email and any
attachments for the presence of viruses. TNCO, Inc. accepts no liability for
any damage caused by any virus transmitted by this email.



More information about the dba-SQLServer mailing list