$week = new
Array('Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'
);

$week = new
Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'
);

Choose one of the arrays as required, then...

$today = $week[0];

Tim in Ireland.

----- Original Message ----- 
From: "Gordon Stewart" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, October 22, 2005 7:04 AM
Subject: [php-list] Change day of week


> $timegiven = mktime (0,0,0,$explo[1],$explo[2],$explo[0]);
>
> $w=date("Y-W-w",$timegiven);
>
> Hi, i'm using the above, to get the YEAR, Week of the year, & the
> number of the day - in a week..  for a given date.  This works..
>
> http://nz.php.net/date
>
> Not necessary,  but fir future enhancement :-
>
> If i wanted to - Is it possible to easily change what day a week starts
from ?
> Eg, Saturday to be the start of the week - or  Wednesday ?
>
>
> Ive looked at the coding - below, but couldnt see anything - will try
> again after dinner..
> - I guess someone might have wanted to do this before now ?
>
>
>
> --
> G Stewart
> http://groups.yahoo.com/group/groupswap/
> NZ community groups - [EMAIL PROTECTED]
>
>
>
> Community email addresses:
>   Post message: [email protected]
>   Subscribe:    [EMAIL PROTECTED]
>   Unsubscribe:  [EMAIL PROTECTED]
>   List owner:   [EMAIL PROTECTED]
>
> Shortcut URL to this page:
>   http://groups.yahoo.com/group/php-list
> Yahoo! Groups Links
>
>
>
>
>
>
>



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to