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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.