I'm cobbling together an event receiver that will be attached to a custom document library definition that will be used to do some field mapping after documents are migrated from an old farm to the new SP2013 farm. Our migration tool, unfortunately doesn't support the kind of mapping we're trying to do (taking one column, parsing, mapping to 2 new schemas, and pushing into 2 columns in the destination), so I figure I could create an ItemAdding event receiver to deal with the mapping magic on the destination end.
Basically, I would like the event receiver to fire as new items are being added and have a conditional "wrapper" around the mapping statements based on whether or not the value in the item's Modified field is < today(). I believe I would do that with:
if (property.BeforeProperties["Modified"] < ... ) and here's where I get stuck...
Assuming property.BeforeProperties is the proper thing to reference here, but I'm not sure what comes out of the Modified field when accessed this way... is it a date? what is its format? Any other advice you might have on this is greatly appreciated. Thank you.