Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Logic problem - UTC dateTime comparison

$
0
0

I have these records in my table:

11/11/2015 04:48:05 pm

11/11/2015 04:50:58 pm

11/11/2015 05:07:17 pm

11/11/2015 05:08:32 pm 

When i use my DateTimeUtil::getSystemDateTime(); - todays time

i need to compare the other records with todays time, to find the record which is closest to the current datetime.

I am thinking of using DateTimeUtil::getDifference but i can't make the logic right when there are more then two UTC dateTime.


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>