Re: adding leading zeros to a date



ZeldorBlat wrote:
> Alternatively:
>
> $InDate = date('Y-m-d', mktime(0, 0, 0, $inmonth, $inday, $inyear));

I thought I'd go for the sprintf as it never gets a mention anymore :)

--
Andrew @ Rockface\n np: (Winamp is not
active)\nwww.rockface-records.co.uk


.



Relevant Pages

  • Re: listbox problem
    ... echo buildListbox; ... Andrew @ Rockface ... np: (Winamp is not active;-) ...
    (alt.php)
  • Re: Sorry
    ... > I'm sorry but I won't be posting anything anymore. ... They said I posted stupid posts. ... Andrew B. Chung, MD/PhD ...
    (alt.support.diabetes)
  • Re: swap prefetch (Re: -mm merge plans for 2.6.23)
    ... anymore because I have really stopped following where it is up to, ... If the code and the results meet the standard that Andrew wants ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: jtable and the tab key
    ... > Hope you get bitten by a snake just like your ancient namesake. ... > anymore if you have any problems with me, ... I will reply to any of your posts that ... Andrew Thompson ...
    (comp.lang.java.gui)
  • Re: jtable and the tab key
    ... > Hope you get bitten by a snake just like your ancient namesake. ... > anymore if you (or Andrew) have any problems with me, ...
    (comp.lang.java.gui)