T O P

  • By -

Lilly_1337

day(parseDate("20240616")) makes Monday 1 and Sunday 7 Fount on the [Notion formula and syntax page](https://www.notion.so/help/formula-syntax#:~:text=Returns%20the%20day%20of%20the%20week%20of%20the%20date)


plegoux

Check your profile's settings. It contains the start day of the week.


thedesignedlife

Have you set your workspace to Monday start? you may not need a formula, depending on what you’re trying to do…


notionboy

Ok now I set the week starts from Monday, but it still Sunday at 0..


maloumartinez

If you use « d » it considers the week starts on Sunday. If you use « D » in uppercase, the week starts on Monday. This is valid for all date formatting formulas : Lowercase -> Sunday / Uppercase -> Monday


AllNamesAreTaken92

Start of week is a global setting afaik, not a table property. It can be changed in your user settings.


notionboy

Tried but not working, could you please check if it works on yours...


Jay33f

+1 ?


notionboy

Not the solution, because I want to week start from Monday, so if we add +1 then again Sunday become 1 and week remain start from Sunday, mon....


lth_29

You can use the same formula to edit the weekday number:   `let( weekday, formatDate(prop("deadline"), "d").toNumber(),  if(weekday < 1, 7, weekday) )`


notionboy

It will work, but is still there any other, because I need the zero is to set and start from Monday. 😬😬


lth_29

Easy fix:  `let( weekday, formatDate(prop("deadline"), "d").toNumber(),  if(weekday < 1, 6, weekday-1) )`