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 |
|
pgmr1998
Yak Posting Veteran
66 Posts |
Posted - 2010-08-16 : 14:30:04
|
| I am pulling a field that is in date/time format using a Select stmt. How can I retrieve only the date portion? The field is in the format:"yyyy-mm-dd hh:mm:ss.000" |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
pgmr1998
Yak Posting Veteran
66 Posts |
Posted - 2010-08-16 : 15:10:58
|
| Thanks, that worked, but how can I get it to display in the format "yyyy-mm-dd" ?It displays as yyyymmdd |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-08-17 : 02:32:52
|
quote: Originally posted by pgmr1998 Thanks, that worked, but how can I get it to display in the format "yyyy-mm-dd" ?It displays as yyyymmdd
Where do you want to show formatted dates?. If you use front end application, do formation thereMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|