KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a DateTime object that I'd like to check and see if it falls within the last 24 hours. I did something like this but its wrong: myDateTime > DateTime.Now.AddHours(-24) && myDateTime < DateTime.Now where did I go wrong?
Tags (comma-separated)
Save Edits
Cancel