Hello everyone, I have a question about inserting dynamic table with time values. Here is example of the table that I have to insert in db:
Schedule for 10/05/2016 | ||
---|---|---|
09:30 AM - 10:00 AM | Remove | |
10:00 AM - 10:30 AM | Remove | |
10:30 AM - 11:00 AM | Remove | |
11:00 AM - 11:30 AM | Remove | |
11:30 AM - 12:00 PM | Remove | |
05:00 PM - 05:30 PM | Remove | |
05:30 PM - 06:00 PM | Remove | |
06:00 PM - 06:30 PM | Remove | |
06:30 PM - 07:00 PM | Remove |
I do not have a problem to insert values if my time difference in always the same. Like first few time slots are increased for 30 min but then I have a gap from 12:00pm all the way until 5:00pm. My problem is there. I do not know what is the best way to save these values. Since values are created dynamically and all of them are under the same date. If I do not have time breaks that would be really easy but in this case where I have time gap looks really complicated. If anyone can tell me what si the best way to store this in database please let me know. Thanks in advance.