1
Answer

how to compare date today with another date

Ask a question
jema

jema

18y
1.7k
1
actually i want to create a reminder for user in my system. i managed tp create a reminder date (nextMaintDate). But now i want to compare the date today with nextMaintDate, if its found to be the same, the data will out into listview that i create. i already do the coding but there is problem with my query..this is my coding:

date = DateTime.Today;

string query = "SELECT equipmentName FROM equipment WHERE nextMaintDate >= date;

**help me please, im begineer user. but im try to do it...huhuhu

Answers (1)