Microsoft
Software
Hardware
Network
Question : SQLSERVER UPdate Time to 00:00:00
Hello,
I have a SQLSERVER Table with a field defined as mDAteTime.
mDateTime has the following samplle data:
10/15/2008 7:00:00 AM
10/18/2008 7:00:00 AM
10/20/2008 7:00:00 AM
10/21/2008 7:00:00 AM
I would like to update the 07:00:00 to 00:00:00. I have used the following commands unsuccesfully:
update LocationContributions SET mDateTime = DateAdd(hh,0,mDateTime)
update LocationContributions SET mDateTime = DateAdd(hh,-07,mDateTime)
Please help. Thanks
Steve Stacel
Answer : SQLSERVER UPdate Time to 00:00:00
update LocationContributions SET mDateTime = DATEDIFF(d, 0, mDateTime)
Random Solutions
Best Software Environment to create Image / Designs / Templates for Websites
Jquery insert ajax modal form and jquery
Returning 0 from a template member function when instantiated with aggregate types
Fading in/out a popup Window in Flex 4.0
Can't open to a specified PDF page in IE 8
Link to PDF files from DVD Menu
Firebox X500 - Where to start....
Why don't Lotus Notes document links work when sent to MS Outlook emails.
Email sent to Tiscali email addresses bouncing with No PTR record error
How does Windows 7 detect Internet access?