I am about to add a "Structured Data Snippet" to my Magento packing slip emails, which should include a future date.
The snippet looks like this (example data):
<script type="application/json+trustpilot">
{
"recipientName": "Name MacNameson",
"recipientEmail": "[email protected]",
"referenceId": "1234abcd",
"preferredSendTime": "2016-02-29T13:37:00"
}
</script>
...and the preferredSendTime should be set to 7 days from now. Time could be 18:00 on them all..
So for instance; if the packing slip is created 2018-03-14 in the morning some time, the value should show "2018-03-21T18:00:00" (which is 18:00 the evening 7 days later)
How can I achieve this? Any help appreciated.