hello, I’m quite new to coding and I need help.
I’ve got a lightbox that I made using Wix tools that says “The shop is closed for this weekend, we will reopen on Sunday at 20:00”
the lightbox is automatically shown on the weekend using a code I got from this forum.
is there a way I can integrate the Sunday date automatically into the lightbox text using corvid code? so it will say something like
“The shop is closed for this weekend, we will reopen on Sunday, November 22 at 20:00”
@asafhel The line you suggested will work well except if today is Sunday.
If today is Sunday, it’ll show the date of next Sunday (since the value of Sunday is 0, and 7 - 0 equal 7, you’ll add 7 day to the current date) .
The line I suggested addresses this issue and shows today date (if it’s Sunday).