11-04-2013 05:50 AM
I'm about to develop a little app, that iterates through a user list and check if the LastContactDate is older than a specific value.
I'm using the floowing code:
System.DateTime.Now).TotalDays >= 150
But there are users where I get FormatException on this line.
When I checked the users I saw the last contact date begins with the month than days, years and so on, but the System.DateTime.Now begins with day than month, years, and so on.
I'd like to know how to parse this date time, because all my try was failed so far.