Jump to content

date() Get wday from day/month/year


Jamz

Recommended Posts

Hi Guys,

 

Been a while since I've been on here,  but I'm currently bashing my head against a wall trying to figure this one out.

 

Basically I have a calendar that outputs Monday through Sunday, and the user clicks on a date and outputs it to the URL.... ie. ?day=$day&month=$month&year=$year.

 

Now the next part I need to find out what day (0-6) say the 25th Feb 2011 will be wday 5... now how can I do this in code?

 

And before anyone says why not output it to url, I cannot as the first week and last weeks use different code :(

 

Cheers

 

James

Link to comment
https://forums.phpfreaks.com/topic/228843-date-get-wday-from-daymonthyear/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.