Results 1 to 13 of 13

Thread: calculate time

Threaded View

  1. #5
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: calculate time

    Quote Originally Posted by vbasicgirl
    just another way if you already had them as dates. convert to a double then back to date
    VB Code:
    1. Dim d1 As Date, d2 As Date, d3 As Date
    casey.


    You probably could skip the conversion (per se) and do:
    VB Code:
    1. Option Explicit
    2. Private Sub Form_Load()
    3.  
    4.     MsgBox CDate("00:00:25") + CDate("00:00:15") + CDate("00:01:00")
    5.  
    6. End Sub


    Bruce.
    Last edited by Bruce Fox; Feb 28th, 2005 at 04:08 PM.

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