Can you explain what "printf('%02d', 1)" and how would I implement this code onto my list of data?
I tried using is like this:
$date = printf ("%02d", $start_date);
it didn't work using the syntax you gave me.
You're confusing printf, which prints, with sprintf, which doesn't print, but returns a string. Same arguments, different side-effects and return values.