![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Joe, The script you provided below worked like a champ, sorry for the long delay, another project came up. One last question. Now that i have seperated the date & time fields, I need to remove the time portion of the date/time field. So, instead of 2005-03-15 09:56:34, i want 2005-03-15. How can this be done?? |
#3
| |||
| |||
|
|
CB wrote: Joe, The script you provided below worked like a champ, sorry for the long delay, another project came up. One last question. Now that i have seperated the date & time fields, I need to remove the time portion of the date/time field. So, instead of 2005-03-15 09:56:34, i want 2005-03-15. How can this be done?? Convert the datetime into a string without the time portion and then cast the result to datetime: CAST(CONVERT(char(10),datetimecolumn,101) as datetime) |
![]() |
| Thread Tools | |
| Display Modes | |
| |