I need to take difference between two dates in normal date format like "2012-03-30 17:21:33.027" using time_t..previously i was using unix timestamp so i used data type long int...but i need to know how to compare using time_t...

plz help.....

You could use difftime

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.