In the spirit of providing technical help, I won't go into details about how to actually do this since you said you found a solution via ChatGPT.
But, one thing to think about is that this will change your local copy of the email, and depending on your mail settings could upload the changes to
your mail server. However, there will be quite a few clues left that this email has been modified.
Firstly, if you are able to upload the change to your exchange/imap server, most servers will treat this as a new email and assign a new internal id. This means that the ideas may appear out of order. (Maybe not in the email client's UI, but in the internal database of emails, which is something that a technical person like a sysadmin might notices.)
Also the correct send/receive date is
also recorded on both sender's and receiver's computers. Any investigation would quickly turn up there the two sets of timestamps don't agree.
There are also logs of it's journey on every mail server it touched between the sender and receiver. Those logs detail the local time the email was received, where it's coming from and where it's going to.
At a minimum that would be the sender's email servers and your email server . Because of how the email protocols are designed, it could also appear on third party servers as it move through the internet. (I think this is not common these days, where most companies are connected to the internet 24/7 but back in the day when internet connections tended to be intermittent, it happened.)
So an email going from my computer to yours would have:
1) The original copy in my sent folder (with the correct timestamps)
2) A log in fastmail.com's smtp server showing that an email was sent from me to you, with the correct timestamps
3) A log in your company's smtp server showing the correct sent/received time stampe
4) A log in your company's imap or exchange server showing the time you accessed it.
5) The modified copy of the email with a timestamp that does not line up with all of the others.
So while it's not terribly hard to change the send/receive dates or even content of an email, it's actually fairly difficult to do it in a way that would stand up to forensic scrutiny. If there were a lawsuit, or law enforcement were involved they would attempt to look at these logs and the original sender's mailbox, if they still exist. They would likely also want to look at your computer, which may have
indications of the original email left over.
So, in essence, it's good for a prank but not much else. If its something that is more serious, then there are risking being found out.
Now speaking non-technically: I would urge you not to do this unless it's a harmless prank. Anything beyond that and there is a significant risk of someone piecing together the various timestamps and realizing what's been done.