Hi, I'm using your CustomTimePicker. I have three columns Hours, Minutes and Format(AM/PM).
I'm struggling to create a min and max time with this control. I've thought about just making it Cascading. I want to set a starting time at 6AM and an ending time at 10PM.
| private void PopulateTimeCollection()
{
//Populate Hour
for (int i = 6; i <= 10; i++)
{
Hour.Add(i.ToString());
}
//Populate Minute
for (int j = 0; j < 60; j++)
{
if (j < 10)
{
Minute.Add("0" + j);
}
else
Minute.Add(j.ToString());
}
//Populate Format
Format.Add("AM");
Format.Add("PM");
Time.Add(Hour);
Time.Add(Minute);
Time.Add(Format); } |
Hi, thanks for the help. It's not quite what I need, as this timer only allows me to choose a time from 6AM till 10AM then 6PM till 10PM. I would still like to be able to choose the time between 10AM till 6PM. Does that make sense? sorry for an inconvenience. Thanks
Hi Jeya,
Thank you for your answer. I am actually developing an app for my store. With an operational time from 6AM till 10PM. I would like to modify the custom timepicker to only show my operational hours to my customers (6AM - 10PM) a min (6AM) and max (10PM) time. The code sample you supplied above allows the customer to choose all times of the day, thus showing them my non-operational time. Is it possible to modify the custom timepicker to my needs. Thanks
Thanks Jeya,
This is amazing. It was exactly what I was looking for. Thank you for your patience.