Gordon,

Not sure there is a 'direct' way to obtaint this. I'm assuming your date value 
is something like
'2004-07-13' which is standard format for a DATE in MYSQL.

The way I would do this is via the mktime() function. Something like:

$mydate = "2004-07-13";
// Split the Date var into seperate fields
list($Year, $Month, $Day) = split("-", $mydate);

// Use mktime to get the UNIX long.
$date_ulong = mktime(0,0,0,$Month, $Day, $Year);

$time_array = getdate($date_ulong);

//At this point the $time_array contains the assoc. array information for the 
date including the
DOW. 

P-



--- Gordon Stewart <[EMAIL PROTECTED]> wrote:

> Is there a way I can obtain the day of week - If I have the day, month, year ?
> 
> (not via the time function - But from a database....)
> 
> Im looking through the calendar and date functions -But can't locate
> anything suitable...
> 
> http://php.inspire.net.nz/manual/en/ref.calendar.php
> 
> http://php.inspire.net.nz/manual/en/ref.datetime.php
> 
> --
> G Stewart
> http://e-services.kwister.com/
> NZ community groups - [EMAIL PROTECTED]
> 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/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