Results 1 to 4 of 4

Thread: [RESOLVED] how can i get the total time between the time?

  1. #1

    Thread Starter
    Enjoy the moment
    Join Date
    Feb 2011
    Location
    Barrio Del pilar madrid spain
    Posts
    5,204

    Resolved [RESOLVED] how can i get the total time between the time?

    hey,
    is there a way to get the total time between 2 diffrent hours?
    e.x

    Code:
    18/07/2018 11:00:00 - 18/7/2018 11:15:00 total time = 15 minutes
    18/07/2018 13:00:00 - 18/7/2018 13:45:00 total time = 45 minutes
    
    total time  in 18/07/2018 = 60 minutes
    and so on...
    tnx for any help
    salsa

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: how can i get the total time between the time?

    Go to MSDN (VB6 Help) and look at the DateDiff Function. Pretty self explanatory.

  3. #3
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,145

    Re: how can i get the total time between the time?

    Example:
    Code:
    Debug.Print DateDiff("n", "18/07/2018 11:00:00", "18/7/2018 11:15:00")

  4. #4

    Thread Starter
    Enjoy the moment
    Join Date
    Feb 2011
    Location
    Barrio Del pilar madrid spain
    Posts
    5,204

    Re: how can i get the total time between the time?

    thank you sami

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width