Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sanjnep
Posting Yak Master
191 Posts |
Posted - 2006-08-22 : 10:27:29
|
| How can I convert value from getdate() function to following format?2006-06-20 00:00:002006-06-20 10:25:55.063 to 2006-06-20 00:00:00ThanksSanjeev Shrestha12/17/1971 |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-08-22 : 10:32:14
|
SELECT DATEADD(d, DATEDIFF(d, 0, GetDate()), 0)Go with the flow & have fun! Else fight the flow blog thingie: http://weblogs.sqlteam.com/mladenp |
 |
|
|
sanjnep
Posting Yak Master
191 Posts |
Posted - 2006-08-22 : 10:33:55
|
| ThanksSanjeev Shrestha12/17/1971 |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-08-26 : 04:17:42
|
| Just for clarity, I prefer usingSELECT DATEADD(day, DATEDIFF(day, 0, GetDate()), 0)Is 12/17/1971 your BirthDate?MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|