VB calculation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cherychoclatecandy
    New Member
    • May 2008
    • 10

    VB calculation

    How do i calculate time for time attendance system eg:clock in n clock out time (as in the total hr per day ) and add up the total hours spend in work for the month?
  • jeffstl
    Recognized Expert Contributor
    • Feb 2008
    • 432

    #2
    Originally posted by cherychoclateca ndy
    How do i calculate time for time attendance system eg:clock in n clock out time (as in the total hr per day ) and add up the total hours spend in work for the month?
    More specifics please.

    You would use a + operator with your values.

    You will probably need to use VB Functions such as

    FormatDateTime
    DateDiff
    Day
    Etc....

    Tutorials on these functions are in alot of places on the web. Here is a nice one

    VB Date Functions

    Try some things out, post specific problems as you have them.

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      If this is VB.NET, you would use the DateTime object (and maybe the TimeSpan object) and it's properties.
      You should not need anything else.

      Comment

      • cherychoclatecandy
        New Member
        • May 2008
        • 10

        #4
        ok thanks for the guide. I will try it out.

        Comment

        Working...