UPDATE: Added data object to date comparison instead of untyped object