List:General Discussion« Previous MessageNext Message »
From:Daevid Vincent Date:July 12 1999 8:27pm
Subject:Re: is the date function wrong in PHP 3.07 or mySQL 3.22.22? (solved)
View as plain text  
Shaun Batterton wrote:

> You are using m for minutes, but it is really month.  "i" is for minutes. Notice
> the month prints out where you expect minutes!
>
> > in PHP I'm trying to use: echo date("m/d/y h:m:sA",$date);
> >
> > and it is giving me: "07/09/99 02:07:36PM" as the responce.
> > when I would expect "07/09/99 02:46:36PM"

Thanks! I feel completely retarded. But you have to admit, it was an honest mistake
;-)

Thread
is the date function wrong in PHP 3.07 or mySQL 3.22.22?Daevid Vincent10 Jul
  • Re: is the date function wrong in PHP 3.07 or mySQL 3.22.22?Shaun Batterton12 Jul
  • Re: is the date function wrong in PHP 3.07 or mySQL 3.22.22? (solved)Daevid Vincent13 Jul