0

good evening everyone...

could anyone help me on this?

With a "time value", eg. 08:00:00...

i want to find the range that this value falls in using case statement...

i am not good in using the time format...

anyone can help?

This is just an example: (the code is not working...is just an example)

datime = Now().ToString("hh:mm:ss")
Select Case datime
Case "08:00:00" To "09:00:00"
lblRange.Text = i.ToString()
Case "09:00:01" To "09:14:59"
lblRange.Text = (i - 0.25).ToString()
Case "09:15:00" To "09:29:59"
lblRange.Text = (i - 0.5).ToString()

Anyone can help?

Edited by Dani: Formatting fixed

2
Contributors
2
Replies
10
Views
3 Years
Discussion Span
Last Post by Jing_1
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.