in reply to Re: Sorting Data by Date (boo)
in thread Sorting Data by Date

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.

Replies are listed 'Best First'.
Re: Re: Re: Sorting Data by Date (boo)
by dws (Chancellor) on Sep 07, 2001 at 23:07 UTC
    You're confusing printf, which prints, with sprintf, which doesn't print, but returns a string. Same arguments, different side-effects and return values.