I Have 2 date fields one is DateTIme and another is DAte and I want to find the difference between those dates.
Here is what I did in my code:
DateTimeUtil::getDifference(ProjStatusChangeDate, DateTimeUtil::newDateTime(tmpDate,86400) );
ProjStatusChangeDate = 7/13/2016 09:50:35 am
tmpDate = 12/31/2015
I want this math to return 213 days but its returning 16815035
I even tried daysCompleted = datetime2str(TblProjStatusChangeDate,213) - datetime2str(tmpDate); but same results.
What am I doing wrong?
Thank You!
*This post is locked for comments
I have the same question (0)