How can I check using some form of if
statement if a certain DateTime
, (say in this case called dateAndTime1) is before the current date and time, which I presume will be retrieved using DateTime.Now
?
if(dateAndTime1 < DateTime.Now)
{
//do something
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With