Quantcast
Channel: Answers for "How do you cast/convert/ or change parts of a datetime field without changing it to a varchar?"
Browsing all 4 articles
Browse latest View live

Answer by JohnM

What version of SQL Server are you running? Also, do you require the actual '00:00:00:000' or if it was converted to just '2011-06-08' would that be acceptable? If you are on SQL 2008, you can do the...

View Article


Answer by Kev Riley

You also need to consider how the data is stored in the column. If you are storing dates with the time portion, then applying a function to the column will prevent SQL from using an index in the...

View Article


Answer by JohnM

What version of SQL Server are you running? Also, do you require the actual '00:00:00:000' or if it was converted to just '2011-06-08' would that be acceptable? If you are on SQL 2008, you can do the...

View Article

Answer by Kev Riley

You also need to consider how the data is stored in the column. If you are storing dates with the time portion, then applying a function to the column will prevent SQL from using an index in the...

View Article
Browsing all 4 articles
Browse latest View live