Hello
Can anyone help me with an issue of trying to get a date from an email and then compare it to “now”? Essentially what i am trying to do is move all emails from folder to deleted items folder that are older than 1 day. My thought was to grab mail.headers(“date”) and compare it to now.adddays(-1) and anything less than that gets moved, but mail.headers is a string so I am having issues. I am open to another method if need be.
Thanks,
John