So, I am working on a PHP scheduler for seminars. Basically I have a list of seminars that each meet once per week at the same time on the same day, and run a set number of weeks.
Right now in my database I have the pkey, the start date, the end date, the name of the seminar, and a string representing the day and time.
Right now I have a page showing all seminars currently running based on comparing today’s date to the start and end dates of all seminars. Now I want it JUST to show seminars meeting today.
I assume I will need to make the schedule variable a DATE. The varchar string was a dect tape fix because I do not even know where to start with this part.
How do I format the SQL variable to store the day and time in a DATE type variable that is in the format [weekday] [time]? Is this possible?
EDIT
Can somebody who understands what I am asking help me reword my question? It seems like I can not make what I am asking clear.
For example let’s say there are MySQL seminars are Wednesdays at 7pm starting 11/14 and ending 12/26. I have Wednesdays 7pm saved as a VARCHAR string, and StartDate and EndDate saved as dates. Right now I have no problem listing all seminars currently in progress, but I would like to filter those by ONLY those meeting on the day of the week that corresponds to the current weekday. To do this I need to turn ‘Wednesday 7pm’ into a DATE variable while still keeping the exact same format for echoing on the schedule.
Since nobody was able to understand my question here, I will answer it myself. After talking with a few professionals and instructors I know (who had no problem understanding what I wanted…), I have found that it technically impossible, but a workaround is to select an arbitrary date that falls on that weekday, and use it as a standin, then always present it in weekday format.