SELECT * FROM ATable WHERE DateField >= Convert(datetime, '2021-12-17 18:25:29')
ALTER TABLE yourTable
ADD CONSTRAINT yourDateTimeColumn CHECK (yourDateTimeColumn < GetDate() );
alter table foo
add constraint check_dates check (from_date < to_date);