Quantcast
Channel: Dick Wenning's Activities
Viewing all articles
Browse latest Browse all 1245

AX2012 LINQ - How to compare datetime

$
0
0

hi everyone,

I'm newbie with the AX.

I'm using LinQ to get data from AX server.

Here are my codes:

 QueryCollection<ContactPerson> contact = new QueryCollection<ContactPerson>(provider);

var results2 = (from c in contact 
where c.ModifiedDateTime >= fromDate

with ModifiedDateTime is ValueType type.

 I also tried to use  the command Convert.ToDateTime( c.ModifiedDateTime) >= fromDate but it didn't work too.

Please help me to solve this problem.

Thank you very much.


Viewing all articles
Browse latest Browse all 1245

Trending Articles



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