Jump to content

Need Date Query


scoorton

Recommended Posts

I need a mysql query that if I feed the the query two dates such as 2006-06-01 and 2006-06-07, I need the query to spit out the date and the day of week. as stated above.

So the user inputs two dates to search between and the query will take that and generate the following.

2006-06-01 Thursday
2006-06-02 Friday
2006-06-03 Saturday

I need these to process the rest of the php script and I know that mysql can produce these items.

Thanks
Scott
Link to comment
https://forums.phpfreaks.com/topic/10959-need-date-query/#findComment-40939
Share on other sites

I have a scheduling script that shows the days of the business week. Mon-Fri. So the user can input two dates into a form to search for that weeks appts. So I need to gather each of those dates so june 1 thru June 7 and the days that those dates fall on. Such as June 2 is a Wednesday. June 3 a Thursday. Then I take that info into an array and grab the scheduled appts for those dates and display to the screen according to the day of the week. Mon Tues Wednes etc.

Cause we only need the business days appt since that is when they are only scheduled.

Link to comment
https://forums.phpfreaks.com/topic/10959-need-date-query/#findComment-41032
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.