Help with a Weekday Expression

Hi all,

Iโ€™m trying to create an expression to auto-populate new forms with the date of the preceding Friday.

According to the help article (961346) on date and time expressions, this formula should work: TODAY() - (WEEKDAY(TODAY()) - 6)
(sorry the system wonโ€™t let me post the link to the appsheet help site)

But instead of populating the previous Friday, it populates the date of the upcoming Friday.
Any tips?

0 3 413
3 REPLIES 3

Hi @elan_Bailey,

Could you please try an expression something like below -

IFS(WEEKDAY(TODAY())= 7, (TODAY() -1), WEEKDAY(TODAY())= 6, TODAY(), WEEKDAY(TODAY())< 6, TODAY()-(WEEKDAY(TODAY()) +1))

Thatโ€™s exactly what I needed. Thank you Suvrutt!

@elan_Bailey

Good to know that the expression worked as per your need.

Top Labels in this Space