Display last 7 days

Hello guys a little help because i got stuck.
I want do display the last 7 days like the photo below. At the right side i want the current date and going to the left the last 6 days.I know the current day from the clock component but not the previous 6. Any ideas?

%CE%A3%CF%84%CE%B9%CE%B3%CE%BC%CE%B9%CF%8C%CF%84%CF%85%CF%80%CE%BF%20%CE%B1%CF%80%CF%8C%202019-11-10%2016-54-19

Use a loop like this one to get the previous 6 days before today:

image

7 Likes

I place the results in dynamic buttons and this is what i get for return.

Show blocks what you set

That’s not what you have to set in the button. I said, that’s how you get the instant for the 6 previous days. You need to format that instant in to the day (dd), with the FORMAT DATE TIME block.

Ok i did it. It works. Thanks. Any idea about the days of the month? Same logic like the photo in my original post.
%CE%A3%CF%84%CE%B9%CE%B3%CE%BC%CE%B9%CF%8C%CF%84%CF%85%CF%80%CE%BF%20%CE%B1%CF%80%CF%8C%202019-11-11%2008-20-06

Edit: I mean the names of the days. Monday, Tuesday…etc

1 Like

There is a block for that, where you input the instant and it returns the day of the week.

image

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.