Determination of current shift Visual Basic

Hi, I need to build something in Visual Basic to determine the current shift. There are 4 shifts:

1. 06:50 AM
2. 12:50 PM
3. 06:50 PM
4. 12:50 AM

Can someone assist?
JessyRobinson1234Asked:
Who is Participating?
 
CodeCruiserCommented:
That comes to command prompt if its a console app. If its winforms, use msgbox.
0
 
CodeCruiserCommented:
You can compare the

Today.TimeOfDay

to those times

http://msdn.microsoft.com/en-us/library/system.datetime.timeofday.aspx
0
 
JessyRobinson1234Author Commented:
Thank you, silly question but where does Console.WriteLine Output go to ?
I tried Under Tools | Options | Debugging, General and Chose the Redirect all Output Window text to the immediate window but no luck.
0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
In the IDE, for WinForms apps, Console.WriteLine() will redirect to the "Output" window.
0
 
JessyRobinson1234Author Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.