Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql server convert string to date

select Cast( '2021-09-22' as date ) as castedDate;
select convert(date,'20210922') as convertedDate;
 
PREVIOUS NEXT
Tagged: #sql #server #convert #string #date
ADD COMMENT
Topic
Name
2+7 =