Wrong day shown

The following is returning the next day instead of the current day...

$tc(up,df(EE, a1d))$

Note that I've read that this could be caused by the first day of the week, which, in my case, is set to Monday. However, I cannot see how such a setting would influence the value of a function that simply translates a day into a name. The first day if the week only influences sort order of days, not their translations into names.

This is a code to print the next day, not the current

a1d is 1 day from now, a15d is 15 days from now.

r1d is 1 day back, r15d is 15 days back.

you can use this codes with days, hours, minutes, etc.

You need to use

$tc(up,df(EEE))$

to print the current day with capital letters.