- This topic is empty.
I was wondering if someone knows how to change a link based on the day of the week?
What I mean:
would appear Monday through Thursday; whereas
would appear on Friday through Sunday — using the same button/link
No, and I’m not sure of a use case for it.
There are scripts to parse dates, days etc… You’d have to adapt one of those.
Google is your friend here.
Just note that scripts that pull client-side dates shouldn’t be thought of as 100% reliable. It’s less a problem these days since most OS’s pull down an automatic time, but someone could just change their system date and refresh to get to the other content.