The operators <, <=,>,> = and == work with DateTime instances, therefore
if(dateAndTime1 < DateTime.Now)
Note that if you are comparing this in a loop, you can get some slight efficiency by setting DateTime now = DateTime.Now before the loop and comparing with now
source share