Ya i have well i needed it a bit urgently so was expecting some one to share a bit of code it cud save a lot of my time ...but still if anybody got any efficient bit of function i wud still appreciate ... @ first i thought it to be easy but slowly got a lot of corner cases to handle
Its been 8 hours now and you still have not started writing the code yet! All you have to do is get the two date/times as time_t object, subtract them. The result is the difference in seconds. From that you can easily convert to minutes, hours, days, years, decades or whatever you want.
To get the time_t object, first populate a struct tm structure with the date/time and call mktime(), which returns time_t.
The whole thing might has taken you an hour or so to complete and test. Instead, you have so far wasted 8 hours trying to get someone else to do it for you. Not very efficient use of your time.
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...