Personally, if it's just the name of the day I'm after, I set up a cron job to write the day to a file at 23:59 every day and then use that file for reference in any scripts.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.