Skip to main content
Solved

Can I look up this week's date for a given Day of the week?

  • October 25, 2023
  • 3 replies
  • 25 views

Forum|alt.badge.img+3

Basically,

I have a field that lists days of the week with no reference to date. I have tasks that need to be done on a particular day. Would like to another field to automatically update itself with date of the current week for that given day. 

 

Is this possible? 

 

Thanks

Best answer by Sho

For example, if you always display this Friday(5), the formula would look like this.

DATEADD(DATETIME_PARSE(WEEKNUM(TODAY()),"w"),5,"day")

0 is Sunday and 6 is Saturday.

3 replies

Forum|alt.badge.img+21
  • Inspiring
  • Answer
  • October 26, 2023

For example, if you always display this Friday(5), the formula would look like this.

DATEADD(DATETIME_PARSE(WEEKNUM(TODAY()),"w"),5,"day")

0 is Sunday and 6 is Saturday.


Forum|alt.badge.img+3
  • Author
  • New Participant
  • October 31, 2023

For example, if you always display this Friday(5), the formula would look like this.

DATEADD(DATETIME_PARSE(WEEKNUM(TODAY()),"w"),5,"day")

0 is Sunday and 6 is Saturday.


Thank you @Sho much! This worked like a charm. 


Forum|alt.badge.img+1
  • New Participant
  • December 4, 2023

For example, if you always display this Friday(5), the formula would look like this.

DATEADD(DATETIME_PARSE(WEEKNUM(TODAY()),"w"),5,"day")

0 is Sunday and 6 is Saturday.


Exactly what I was looking for. Thanks!