Re: [PHP] Problem with date('w')

2003-08-26 Thread BEOI 7308
i found out that using strtotime did the trick !! > > I have a problem with the date function > > > > > $theday = date("Y-m-d", time()); > > echo date((w), $theday); > > ?> > > I'm pretty sure the optional second argument for date is a unix timestamp > that you would generate by using either

RE: [PHP] Problem with date('w')

2003-08-25 Thread Jennifer Goodie
> I have a problem with the date function > > $theday = date("Y-m-d", time()); > echo date((w), $theday); > ?> I'm pretty sure the optional second argument for date is a unix timestamp that you would generate by using either time or mktime or strtotime. You are passing it something in the for