CONVERT function syntax: CONVERT(<target data type>, <expression to be converted>, <style>)
5>
6>
7> SELECT CONVERT(datetime,(CONVERT(varchar,GETDATE(),112)))
8> GO
-----------------------
2008-08-17 00:00:00.000
(1 rows affected)
Related examples in the same category