I was trying to create a table as follows,
create table table1(date1 datetime,date2 datetime);
First I tried inserting values as below,
For me this worked:
INSERT INTO [MyTable] ([ValidFrom] ,[ValidTo]) VALUES ('2020-01-27 14:54:11.000' ,'2023-01-27 14:52:50.000')