in reply to Re: DateTime and hour 0
in thread DateTime and hour 0

Thanks That seems to work better, Im just trying to zero-pad the day and num_to_month( $datetime->month ) isnt returning anything. But I get the idea. Thanks again.
Ted

Replies are listed 'Best First'.
Re^3: DateTime and hour 0
by Mr. Muskrat (Canon) on Apr 19, 2005 at 11:28 UTC
    Zero-padding is best done with printf or sprintf. I don't know where num_to_month is coming from (something you wrote?) but why not just use $datetime->month_name?