php-general | 2001062
Date: 06/25/01
- Next message: ..s.c.o.t.t..: "RE: [PHP] [OT-ish] Optional Extras."
- Previous message: Mattias Segerdahl: "[PHP] [PHP-WIN] Problems running php from samba network shares..."
- In reply to: Tyler Longren: "[PHP] date -> day"
- Next in thread: infoz: "Re: [PHP] date -> day"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
mktime can be pretty useful :
$year = 2001;
$month = 6;
$day = 1;
print date('l',mktime(0,0,0,$month,$day,$year));
as it creates a unix timestamp, and date() appreciates that.
Regards,
Philip
On Mon, 25 Jun 2001, Tyler Longren wrote:
> Hello,
>
> I have something like this:
> $Month = "6";
> $Year = "2001";
> $Date = "1";
>
> Is there any relatively simple way to get the day out of that? For example,
> the day for 6-1-2001 would be Friday.
>
> Thanks,
> Tyler
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: ..s.c.o.t.t..: "RE: [PHP] [OT-ish] Optional Extras."
- Previous message: Mattias Segerdahl: "[PHP] [PHP-WIN] Problems running php from samba network shares..."
- In reply to: Tyler Longren: "[PHP] date -> day"
- Next in thread: infoz: "Re: [PHP] date -> day"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

