ShorePatrol
Programmer
I am creating a database that will keep track of scheduling....
So I need to store a START date/time stamp, and an END date/time stamp...
For example, if someone makes an appointment from 9 to 10 AM on 8/21/05, I'm assuming the database values should be:
SDATE = 8/21/05 9:00 AM
EDATE = 8/21/05 10:00 AM
Is this how I should do it? Or should I store the date & time seperately?
My big struggle here is how to query the information easily from the front end....
For example:
If I want to query all the events for 8/21/05, that would be easy......but if I want to display all the events on a web type calendar, I need to somehow figure out how to do this...
PYSDO CODE:
If there is an appointment that is at 9 AM, turn the table cell red
If there is an appointment that SPANS the 9am hour (like from 8-11), turn the table cell red
Any suggestions?
So I need to store a START date/time stamp, and an END date/time stamp...
For example, if someone makes an appointment from 9 to 10 AM on 8/21/05, I'm assuming the database values should be:
SDATE = 8/21/05 9:00 AM
EDATE = 8/21/05 10:00 AM
Is this how I should do it? Or should I store the date & time seperately?
My big struggle here is how to query the information easily from the front end....
For example:
If I want to query all the events for 8/21/05, that would be easy......but if I want to display all the events on a web type calendar, I need to somehow figure out how to do this...
PYSDO CODE:
If there is an appointment that is at 9 AM, turn the table cell red
If there is an appointment that SPANS the 9am hour (like from 8-11), turn the table cell red
Any suggestions?