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


#1

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


#2

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.


#3

This appears to be the function.


#4

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


closed #5

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