How to get dates and days of week

How to get  dates and days of week:

For example previous week was started on 19th October 2020 and ended on 25th October 2020,

So how do we get all days and dates between 19th and 25th,

Basically how do we gets to know the days and dates of the week.

Thanks in advance!

  Discussion posts and replies are publicly visible

Parents
  • This should get you started. Adapt the second line to your needs. To get the first day of the week for any given date you can use the weekday() function und subtract the returned value from the given date. Change the second parameter of weekday() to match your understanding of what the first day of week is.

    a!forEach(
      items: today() + enumerate(5),
      expression: {
        day: fv!item,
        dow: weekday(fv!item)
      }
    )

Reply
  • This should get you started. Adapt the second line to your needs. To get the first day of the week for any given date you can use the weekday() function und subtract the returned value from the given date. Change the second parameter of weekday() to match your understanding of what the first day of week is.

    a!forEach(
      items: today() + enumerate(5),
      expression: {
        day: fv!item,
        dow: weekday(fv!item)
      }
    )

Children
No Data