SQL. How to convert a date from JS to an SQL date

Sometimes it is necessary to convert a date from JSON (ISO 8601) to an SQL date. 

One of the applications is processing dates in a calendar.

DECLARE @stringDate nvarchar(50)
SET @stringDate = '0001-01-01T12:00:00'

    @stringDate AS StringDate,
    SCONVERT(datetime, @stringDate, 126) AS ConvertedDate

A source: 


Falcon Space is a functional web development platform on a narrow stack MS SQL/Bootstrap. Falcon Space Gettting started

Falcon Space Platform

This is a reduction in the cost of ownership

at the expense of fewer people to support

This is a quick change

while using the program

This is a modern interface

full adaptation for mobile devices