Results 1 to 3 of 3

Thread: [Resolved] Abstract 2 Dates

  1. #1

    Thread Starter
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Exclamation [Resolved] Abstract 2 Dates

    Hello everyone,

    I have 2 dates. For example
    01/04/2009 and 12/01/2011
    And I want to make (12/01/2011) - (01/04/2009) = ?
    And the result to be in days.

    Is there any way to do something like that?

    Please help me...it's important.
    Last edited by DarkX_Greece; Apr 1st, 2009 at 06:29 AM. Reason: Resolved
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Abstract 2 Dates

    Something like
    Code:
    Private Sub Command1_Click()
    MsgBox DateDiff("d", "12/01/2011", "04/04/2009")
    End Sub

  3. #3

    Thread Starter
    Hyperactive Member DarkX_Greece's Avatar
    Join Date
    Jan 2004
    Location
    Athens (Greece)
    Posts
    315

    Re: Abstract 2 Dates

    Thank you Hack.
    Short CV:
    1. Visual Basic 6 Programmer
    2. Web Expert


    Botonakis Web Services

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