I need to create a list of saturdays for a year. I want to be able to automatically select the saturday for the current week in a combo box of all saturdays in a year for a hourly work calculator. Can anyone help me?
Thanks!!
The headline of your questions says bi-weekly, so do you need to create a list of every other Saturday?
Which Saturday of the year starts the list of Saturdays? The first or the second?
I would ascertain the first Saturday of the year and write a loop which adds 14*24*60*60 seconds to the UNIX timestamp of the first date. Output the new timestamp in the format you want using date(). Check during the output if the date is in the future or not (current timestamp - the value). For the first future date set the option tag to SELECTED.
Let's start with that. If you need code help, let us know!
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.