Re: how to get day of week?
| From: | kev | Date: | Tue, 22 Aug 2000 14:08:14 +0000 |
| Subject: | Re: how to get day of week? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12931@lists.php.net to get a copy of this message | ||
Thanks Pavel,
I figured it out now - I'm using strtotime() to convert a MySQL date/time var
into a *nix timestamp, then I'm
using date() on that.
cheers,
- Kev
Pavel Jartsev wrote:
> kev wrote:
> >
> > Hi,
> >
> > I need to find out the day of the week for a given date in mysql DATE
> > format.
> > The calendar functions page in the manual
> > (http://www.php.net/manual/ref.calendar.php) says:
> >
> > "The calendar functions are only available if you have compiled the
> > calendar extension in dl/calendar. Read dl/README for instructions on
> > using it."
> >
> > I noticed that dl/README is not in my source distribution (PHP4.0.1pl2),
> > although it used to be in 4.0.0. Is it out of date now? Which functions
> > should I use to get the day of week for a particular date?
> >
> > thanks,
> >
> > - Kev
> >
>
> Hi!
>
> Try date() or strftime() (they have a lot of nice parameters for
> formatting).
> See manual section: "IX. Date and Time functions".
>
> Hope this helps.
>
> --
> Pavel a.k.a. Papi
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
http://www.fa-premier.com - English Premiership Football