Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001062

Re: [PHP] date -> day From: Philip Olson (philip <email protected>)
Date: 06/25/01

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>