Hi there,
In my ItemUpdating event I need to check if the MyDate column has changed.
if (p.AfterProperties["MyDate"].Equals(p.ListItem["MyDate"]) == false)
{
//Date has changed
}But this comparison is always false even if the date is not changed. The reason is - AfterProperties["MyDate"] outputs a simple date format - while - ListItem["MyDate"] outputs many lines of data for exactly same date.
How to get these two to output date in same format so comparison can be made?
Thanks so much.