RE: [PHP-WIN] Formatting a date
| From: | Asendorf, John | Date: | Thu, 12 Oct 2000 14:19:46 +0000 |
| Subject: | RE: [PHP-WIN] Formatting a date | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-3198@lists.php.net to get a copy of this message | ||
You've obviously started your homework, so I'll give you a piece of code I'm
using for a similar news include
$date = date ("l, F j, Y", strtotime (odbc_result ($sql_story_result,
"date"))
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
> -----Original Message-----
> From: Warwick Chapman (Budgee) [mailto:Budgee@ghs.kzn.school.za]
> Sent: Thursday, October 12, 2000 10:14 AM
> To: Asendorf, John
> Subject: RE: [PHP-WIN] Formatting a date
>
>
> Hi All
>
> Can that function be used for formatting a date which has been
> pulled out of a DB, cause the dates which come out of my Access
> DB look bloody silly (http://www.glenwoodhighschool.co.za/news),
> I'd rather have them in words and numbers.
>
> Thanks
> Budgee
>
> On 12 Oct 00, at 8:08, Asendorf, John wrote:
>
> > And the best way to do that now is by typing:
> >
> > www.php.net/date
> >
> > or
> >
> > www.php.net/time
> >
> > into your browser... it's pretty cool. Functions can now
> be found that way
> > on php.net
> >
> >
> > ---------------------
> > John Asendorf - jasendorf@lcounty.com
> > Web Applications Developer
> > http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> > Licking County, Ohio, USA
> > 740-349-3631
> >
> >
> > > -----Original Message-----
> > > From: Zak Greant [mailto:zak@php.net]
> > > Sent: Wednesday, October 11, 2000 6:57 PM
> > > To: Todd Cary
> > > Cc: php-windows@lists.php.net
> > > Subject: Re: [PHP-WIN] Formatting a date
> > >
> > >
> > > At 03:38 PM 10/11/00 -0700, Todd Cary wrote:
> > > >How do I print today's and and time?
> > >
> > > Read the manual entries on time () and date ()
> > >
> > > >How do I set a variable so that it has the number of
> seconds since
> > > >epoch? Is it
> > > >
> > > >$myday = time();
> > >
> > > Hum... You had better try that one out and see :)
> > >
> > > - zak
> > >
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-windows-help@lists.php.net
> > > To contact the list administrators, e-mail:
> > > php-list-admin@lists.php.net
> > >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-windows-help@lists.php.net
> > To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
> >
>
>
>
> Warwick Chapman (1999)
> Assistant IT Manager
> Glenwood High School, Durban, South Africa
> 031 2055241
> 083 7797094
> www.glenwoodhighschool.co.za
>