Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Formula to Display "Week Of" Date

Topic Labels: Dates & Timezones Formulas
Solved
Jump to Solution
102 2
cancel
Showing results for 
Search instead for 
Did you mean: 

Hi AT Community,

 

I'm new to Airtable and ’m trying to create a formula that would display the Monday of the week / "week of" date for a given date. Monday is the start date of the week. 

I've tried formulas from other posts but when I add the formula to my field, it gives an error.

The formulas I've tried are:

DATETIME_FORMAT({Date},‘e’)+1,‘days’),‘M/D’))

--

 

 

 

CONCATENATE("Week of ", DATETIME_FORMAT(DATEADD({Date},-DATETIME_FORMAT({Date},"e"),"days"),"M/D"))

 

 

 

 --

DATETIME_FORMAT(IF(WEEKDAY({Date Due})>1,DATEADD({Date Due},-WEEKDAY({Date Due})+1,'days'),IF(WEEKDAY({Date Due})<1,DATEADD({Date Due},-WEEKDAY({Date Due})-6,'days'),{Date Due})),'l')

I really just want to get the Monday of the week when the record is created. So if the record was created on, say, January 19, 2023 - the Monday of that week would be January 16, 2023. And the field would display exactly "January 16, 2023."

Thank you in advance! 🙏

1 Solution

Accepted Solutions
jasonsamuels
5 - Automation Enthusiast
5 - Automation Enthusiast

Try this:

"Week of " & DATETIME_FORMAT(DATEADD(Date,1-DATETIME_FORMAT(Date,'E'),'day'),'ll')

See Solution in Thread

2 Replies 2
jasonsamuels
5 - Automation Enthusiast
5 - Automation Enthusiast

Try this:

"Week of " & DATETIME_FORMAT(DATEADD(Date,1-DATETIME_FORMAT(Date,'E'),'day'),'ll')

Thank you so much! Worked like a dream! 🙂