I had a 24 hour clock in which you can imagine the algorithm could be easily done by using two drop down boxes with values inside of it.Code:If lblHour.Text = TimeOfDay.Hour And lblMinute.Text = TimeOfDay.Minute And TimeOfDay.Second = 0 Then msgbox("Alarm worked!") End If
Hour: 1-24
Minute: 00-59
The labels contain what the user wants as the Alarm Set Time
However now I am wanting to make this into a 12 hour alarm clock, and I need some help on doing this.
I have now got 3 drop down boxes
Hour: 1-11
Minute: 00:59
AmPm: Choose Am or Pm
I am not looking for the code, I am just looking an algorithm to go along with so I can do this, I have spent all day trying to work what I could do, and I just can't do it... Thanks Guys!!![]()




Reply With Quote