How to get day of week for a given date?

I have a date in a date variable. How do I get the day of week with the week starting on Monday ?

Thanks

I managed to get the date number with this code with ‘date’ as a datetime variable

${date.getDayOfWeek().getValue()}

2 Likes