If you are just interested in converting a single number into a day of the week, then you can simply use:
DayOfWeekName = StrExtract( "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday", lastvalue( DayOfWeek() ) );
This will give you the name of the day of the last bar (day if you...