Posted by ZeldorBlat on 11/18/05 00:52
If you wanto remove the time portion and keep the value as datetime (instead of char) you can use this: CAST(FLOOR(CAST(someDate AS float)) AS datetime) I always thought that was a nifty idiom -- but I'm not sure of the performance implications (if any).
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming