Hello

I have design one GUI and storing data of that in database with date and time.

i am taking few sequence from the user for any single date and time. and storing that into database.

now i want to start thread when that date and time ocurre. but i don't know how to take data from database which has today's date and time.

can any one give me c# code for that.

i have used in built SQL server database and C#.

i am just putting my logic here below.


while(1)
{
if(today's date match with database date)
{
if(time match with database time)
{
my logic
}
}
}