Re: how to get day of week?

From: Date: Tue, 22 Aug 2000 12:27:50 +0000
Subject: Re: how to get day of week?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12926@lists.php.net to get a copy of this message
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

« previous php.general (#12926) next »