I'm confused. You're already showing those dates, aren't you?
Initially yes. When we added the function the dates were removed and replaced with today, tomorrow and how many days.
$date = dateString(new DateTime(date('l, j F', $timestamp)));
2 days ago
I then added, which you're probably referring to:
$date = date('l, j F', $timestamp) .' <span> '. dateString(new DateTime(date('l, j F', $timestamp))) . '</span>';
Thursday, 22 May 2 days ago
Saturday, 24 May yesterday
Sunday, 25 May today
Monday, 26 May tomorrow
Wednesday, 28 May 3 days
I was printing the date and number of days together just as a test, to see if I could do it.
There will be times where I'll use both together, though most times I don't need both and just need:
Saturday, 26 May
Saturday, 27 May
and so on...
Your initial function works great, we just need to change the future events to show the date, instead of number of days if that makes sense.
Sorry for the confusion.