Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

convert date to datetime sql

-- 2 ways 
SELECT CONVERT(datetime, '2021-01-01');
SELECT CAST('2021-01-01' AS datetime);
 
PREVIOUS NEXT
Tagged: #convert #date #datetime #sql
ADD COMMENT
Topic
Name
9+5 =