I tend to look this up quite a bit, so here it is for quick reference. This converts a datetime column into a MM/DD/YYYY format.
UPDATE MyTable SET DateColumn2 = CONVERT(varchar(10), DateColumn1, 101)
Related posts
Add comment
Just another .NET developer who happens to be named Jon
Sign in