How to test two dateTimes for being the same date? [duplicate] February 25, 2023 by Tarik Try if (dt.Date == DateTime.Now.Date) It will only take the date portion and the timestamp will be 12:00:00