We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,263 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to compute working hours

Hello guys, im a newbie in vb programming. I just want to know how to compute total working hours. for EXAMPLE, i started 8:00 AM And goes out 13:00, the total time would be 4 hrs. because 12:00-1:30 is lunch break.

5
Contributors
11
Replies
1 Week
Discussion Span
3 Months Ago
Last Updated
16
Views
archelle
Newbie Poster
21 posts since Dec 2011
Reputation Points: 4
Solved Threads: 1
Skill Endorsements: 0
Philippe.Lahaie
Posting Whiz
360 posts since Oct 2007
Reputation Points: 103
Solved Threads: 54
Skill Endorsements: 4

As a newbie, the first thing you should learn is how to use SEARCH. As Philippe pointed out, your question has been asked and answered several times. You would have found this out had you put in even a minimal effort to look instead of just asking someone else to do the work for you.

Reverend Jim
Carpe per diem
Moderator
3,606 posts since Aug 2010
Reputation Points: 561
Solved Threads: 450
Skill Endorsements: 32

Thank u for your very interesting and a remarkable reply Reverend Jim. That helps much.

archelle
Newbie Poster
21 posts since Dec 2011
Reputation Points: 4
Solved Threads: 1
Skill Endorsements: 0

I never ask/let anyone to do it for me, i am asking HOW.

archelle
Newbie Poster
21 posts since Dec 2011
Reputation Points: 4
Solved Threads: 1
Skill Endorsements: 0

And they're trying to tell you how. One of the quickest ways to see how is to read articles, look at sample code, read articles, look at sample code, etc. One very useful source is the MSDN site.

tinstaafl
Nearly a Posting Virtuoso
1,332 posts since Jun 2010
Reputation Points: 355
Solved Threads: 234
Skill Endorsements: 14

i usualy google it before posting new threads about it. and thats why i never* start any thread! :D

*almost

Philippe.Lahaie
Posting Whiz
360 posts since Oct 2007
Reputation Points: 103
Solved Threads: 54
Skill Endorsements: 4

Thank u for your very interesting and a remarkable reply Reverend Jim. That helps much.

Being lazy is not a great way to get through life. Being lazy with attitude is even worse. You got a response with links to five different threads where your issue was addressed. The acceptable response would have been

  1. check out the suggested threads
  2. reply to this thread with a "thanks for the suggestions"

I, for one, am getting tired of people whose first reaction when they don't know something is to ask someone else to do the legwork for them. Simply going to google and entering the string "working with time in vb.net" gets a number of useful responses. But reading them and working through a few examples would involve effort on your part and I get the impression that "effort" is not "your thang".

Reverend Jim
Carpe per diem
Moderator
3,606 posts since Aug 2010
Reputation Points: 561
Solved Threads: 450
Skill Endorsements: 32

Calling somebody lazy based on their post on some forum is just fuking funny man. Why so uptight ?? this is a discussion forum. All forums are based on asking questions. Philippe pointed out the threads that could help the man find his answer, but you are calling him lazy, please go back to being retired and leave us "LAZY" short-cutters alone. Asking people to do your work is a brilliant thing, it saves you time and money. We are building apps with the help of each other. Asking a question already means I couldn't find an answer by googling it (90% of the time) ... Get a life revrend.

boher
Newbie Poster
12 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

Phillipe provided five links to articles on this forum which give the help that was asked for, something that the OP could and should have done before asking the question. The phrase asking someone else to do the work for you refers not only to us providing the code but doing the search. I just called it like I saw it. If you browse the answers I have given on this forum you will see that I have provided very lengthy and detailed information in many cases. This was on my own time and own my own dime.

As for the abusive language (which you probably had to enter with the deliberate mis-spelling to get around the language filter), all that did was earn you an infraction.

Reverend Jim
Carpe per diem
Moderator
3,606 posts since Aug 2010
Reputation Points: 561
Solved Threads: 450
Skill Endorsements: 32

Wow an infraction? What is that?

boher
Newbie Poster
12 posts since Jan 2012
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

It means you have five penalty points. If you accrue too many you are banned until they expire. I suggest you read the member rules the Keep It Pleasant section includes

  • Do not post insults or personal attacks aimed at another member
  • Do not use offensive or obscene language
  • Do not try to bypass the DaniWeb inappropriate language filter
Reverend Jim
Carpe per diem
Moderator
3,606 posts since Aug 2010
Reputation Points: 561
Solved Threads: 450
Skill Endorsements: 32

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0893 seconds using 2.75MB