Articles → SQL SERVER → Parse Function Of The SQL Server
Parse Function Of The SQL Server
Purpose
Syntax
parse([value] As [Data Type])
Example
declare @str as nvarchar(20) = '12/12/2023'
Declare @date as datetime
set @date = parse(@str as datetime)
select @date As [Date]
Output
Try_Parse Function