I know this might sound easy but ive been racking my brain for days with this shite...
I have a form that allows the user to pick select the day and the time (i wont bother with the semanctics), Basically they select a day (i.e Mon, Tue, Wed, THU, Fri, Sat, SUn), and a time (24 hr clock).
Now it is up to me to get the selected value and form an upper and lower limit of the specified time period.
I have to add six hours and subtract six hours to form a window of time. Now the problem is that what if they select somethin like 23 hrs on a friday I need to get these returned values SAT 5 am and FRI 1800... This is driving me nuts any advice would help.
Note the last thing i want to do (I know it may sound lazy) is write a switch statement for 7 days, but if i must i will
Cheers
Navee