Solved

Determination of current shift Visual Basic

Posted on 2013-01-22
5
160 Views
Last Modified: 2013-01-24
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?
0
Comment
Question by:JessyRobinson1234
  • 2
  • 2
5 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 38804597
You can compare the

Today.TimeOfDay

to those times

http://msdn.microsoft.com/en-us/library/system.datetime.timeofday.aspx
0
 

Author Comment

by:JessyRobinson1234
ID: 38804989
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
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 38805171
That comes to command prompt if its a console app. If its winforms, use msgbox.
0
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 38805393
In the IDE, for WinForms apps, Console.WriteLine() will redirect to the "Output" window.
0
 

Author Closing Comment

by:JessyRobinson1234
ID: 38813832
Thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
vb.net checkbox 7 47
Change Format on Data when exporting to Excel 4 33
Advice on Xojo as a development tool over VB. 4 55
Extracting last characters in a substring 5 27
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question