mattboyslim
Programmer
I have a database where there is a "Start Date" and and "End Date" of an event.
I need to get all the days between those two days.
The reason I need this is because of a calendaring application where I'm highlighting days where events occur.
Here is my current code, which loops and highlights both the start date and the end date, but I also need the days between those days highlighted.
Code:
=================
oCalendar.AddHightlight(rs_events.Fields.Item("f_datestart").Value)
oCalendar.AddHightlight(rs_events.Fields.Item("f_dateend").Value)
=================
I need something like this, but I'm not sure how to accomplish the coding. I'm assuming that if done correctly, you could do away with the individual start and end dates, and simply get all dates with one string, but again, I may be wrong.
Code:
oCalendar.AddHightlight(rs_events.Fields.Item("f_datestart").Value)
oCalendar.AddHightlight((rs_events.Fields.Item("f_datestart").Value) - (rs_events.Fields.Item("f_dateend").Value))
oCalendar.AddHightlight(rs_events.Fields.Item("f_dateend").Value)
Thanks in advance,
Matt
I need to get all the days between those two days.
The reason I need this is because of a calendaring application where I'm highlighting days where events occur.
Here is my current code, which loops and highlights both the start date and the end date, but I also need the days between those days highlighted.
Code:
=================
oCalendar.AddHightlight(rs_events.Fields.Item("f_datestart").Value)
oCalendar.AddHightlight(rs_events.Fields.Item("f_dateend").Value)
=================
I need something like this, but I'm not sure how to accomplish the coding. I'm assuming that if done correctly, you could do away with the individual start and end dates, and simply get all dates with one string, but again, I may be wrong.
Code:
oCalendar.AddHightlight(rs_events.Fields.Item("f_datestart").Value)
oCalendar.AddHightlight((rs_events.Fields.Item("f_datestart").Value) - (rs_events.Fields.Item("f_dateend").Value))
oCalendar.AddHightlight(rs_events.Fields.Item("f_dateend").Value)
Thanks in advance,
Matt