Life, the Internet, and Everything!

[PHP] How Do I Get A Week Value? I have …

Comment on Tips for Using Time Stamps in ILE RPG by Redsatori.

[PHP] How Do I Get A Week Value? I have to create an array of strings which need to be formatted like this:

(Week number): Sat (date)

I need to include every Saturday for the year in my list.

I know that date(“W”) returns the ISO8601 week number.
I also know that date(“D MjS, Y) will return the year like this: Mon Sep 12th, 2011.

How do I go about finding each Saturday of a given year and also each Saturday’s ISO week number for my string?

Additionally, it needs to limit this to the current year.

 
Next Post
092217_0320_WhatWillThe1.jpg
Miscellany

What Will The Next Generation Of Aspiring Entrepreneurs Look Like?