When I select from SQL Server, I want to get a date, but omit the millisecond value, and I want it to be as a date type. So if I have a value 1/1/2009 1:23:11.923
Use:
SELECT CONVERT(DATETIME, CONVERT(VARCHAR(19), GETDATE(), 120))
This:
CONVERT(VARCHAR(19), GETDATE(), 120)
...omits the milliseconds, returning a VARCHAR. So you CAST/CONVERT that into a DATETIME in order to work with the desired data type.
See this link for a list of various date/time formats you can work with.