SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Changing Date value
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

masond
Constraint Violating Yak Guru

447 Posts

Posted - 02/27/2014 :  03:47:59  Show Profile  Reply with Quote
Hey guys

I have the following field “Period_DT” displayed as “2012-12-01” how can i make it ‘2012-12-01 00:00:00’

Column Name : Period_DT
Date type : Date

Looking forward to your help

Regard
D

VeeranjaneyuluAnnapureddy
Posting Yak Master

India
158 Posts

Posted - 02/27/2014 :  03:55:16  Show Profile  Reply with Quote
SELECT CAST(Period_DT AS DATETIME) AS Period_DT

Veera
Go to Top of Page

masond
Constraint Violating Yak Guru

447 Posts

Posted - 02/27/2014 :  04:16:24  Show Profile  Reply with Quote
Thanks VeeranjaneyuluAnnapureddy

Thats exactly what i wanted :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000