Can we specify a different first day of the week for gs.beginningOf methods?

marajadesharpie
Giga Contributor

Hi there,

The gs.beginningOfLastWeek(), gs.beginningOfThisWeek(), etc. all start on Monday. We need them to start on Sunday. Is there any way to specify a different day of the week? We tried setting the glide property for first_day_of_week to Sunday, but it only affects Calendar reports and does not change the functionality of the above methods. We also tried creating dynamic filters using custom script includes, but you cannot use them on a Date/Time like Created in a report.

So we are stuck being unable to build a report against Created on Last Week starting on Sunday instead of Monday. A last resort would be to forcibly alter the filter with a script, but I don't like that at all.

Any ideas would be greatly appreciated! Thanks!

1 ACCEPTED SOLUTION

marajadesharpie
Giga Contributor

Nevermind, I just found it! It should be this property:



glide.ui.filter.first_day_of_week



Not this property:



glide.ui.date_format.first_day_of_week



Guess I should Google harder before asking.


View solution in original post

1 REPLY 1

marajadesharpie
Giga Contributor

Nevermind, I just found it! It should be this property:



glide.ui.filter.first_day_of_week



Not this property:



glide.ui.date_format.first_day_of_week



Guess I should Google harder before asking.