levyuk
Well-known member
Hi,
I think this is fairly simple, but then isn't everything when you know how. I would like to populat a listbox with some time periods.
For instance
10:00-12:00
12:00-14:00
14:00-16:00
16:00-18:00
18:00-20:00
One this is done I would like to check that the selected item in the listbox is not in the past.
So if the current time is 12:00 then the user will not be able to select 10:00-12:00.
Thats my first question. My 2nd question is - in what format would time be stored in a database?
Basically I need to know how to compare the system time with the time in the listbox.
Thanks for any help.
Levy
I think this is fairly simple, but then isn't everything when you know how. I would like to populat a listbox with some time periods.
For instance
10:00-12:00
12:00-14:00
14:00-16:00
16:00-18:00
18:00-20:00
One this is done I would like to check that the selected item in the listbox is not in the past.
So if the current time is 12:00 then the user will not be able to select 10:00-12:00.
Thats my first question. My 2nd question is - in what format would time be stored in a database?
Basically I need to know how to compare the system time with the time in the listbox.
Thanks for any help.
Levy