You need to sign in to do that
Don't have an account?
Sameer Tyagi
Hi! please suggest me a code to calculate the diffrence between two datetime variable in days hours minute.
I have two datetime variable
datetime dt1 = obj.lastdate__c;
datetime dt2 = system.now();
I need to calculate dt1 - dt2 in days hours minutes
Please suggest a sample code. Your help would be appricated.
datetime dt1 = obj.lastdate__c;
datetime dt2 = system.now();
I need to calculate dt1 - dt2 in days hours minutes
Please suggest a sample code. Your help would be appricated.
this is possible.
Please check the link below for the code.
http://www.interactiveties.com/blog/2011/apex-time-duration.php
Regards,
Satish Kumar