GenDate.getDay() does not display correct day of month?

Hi,

I’d like a text widget to display the genDate in a custom format. My function reads;
[[GenDate.getMonthName()]] [[GenDate.getDay()]], [[GenDate.getFullYear()]]

However [[GenDate.getDay()]] always just returns “1”.

Is this a bug?

Cheers

No, I believe that’s correct. There a different function that returns that name of the day instead of its index in the week.

In the expression editor there’s a variables and functions dropdown. Find the Date section in there and look for it. I can’t remember the name, and I’ll not at my computer, but it’s something like getFullDayOfWeek or similar.

1 Like

This appears to be the function.

1 Like

[[GenDate.getDate()]] was the solution I was after. Thanx guys

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.