dharmendrayadav
26th December 2014, 08:10
suppose one date is 23/11/2010 and another date is 31/03/2014

difference of above date should be in month , its result is 41 month

please help

bdittmar
26th December 2014, 11:38
suppose one date is 23/11/2010 and another date is 31/03/2014

difference of above date should be in month , its result is 41 month

please help

Hello,

search forums before posting, please.
Also use Developers-Guide.

By one search, this is found:

http://www.baanboard.com/baanboard/showthread.php?t=6589&highlight=utc+difference

Regards

frenny
29th December 2014, 14:04
hello ,

try this

long date1,date2,date1.time,date2.time, date.diff, date1.long, date2.long

utc.to.local(date1, date1.long, date1.time)
utc.to.local(date2, date2.long, date2.time)

date.diff = abs(date1.long - date2.long)



date 1 and date2 will be ur input date

sachinbaan
29th December 2014, 14:10
use utc.add() and pass the date with -ve sign... u will get your result.