Link to home
Start Free TrialLog in
Avatar of JessyRobinson1234
JessyRobinson1234

asked on

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?
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

You can compare the

Today.TimeOfDay

to those times

http://msdn.microsoft.com/en-us/library/system.datetime.timeofday.aspx
Avatar of JessyRobinson1234
JessyRobinson1234

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In the IDE, for WinForms apps, Console.WriteLine() will redirect to the "Output" window.
Thanks