in my application i have to create an excel report of records.
everyday at a specified time the report of records added from last 24 hrs has to be generated automatically.
i am unable to compare the dates.

please give me the solution

thanks in advance

Recommended Answers

All 2 Replies

The DateTime structure has a Compare method and has a number of operators overloaded. Addition +, Equality =, GreaterThan >, GreaterThanOrEqual >= etc. You can even add a DateTime and a TimeSpan that way.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.