Working with Dates, VB3

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mad

    Working with Dates, VB3

    Hello to all.

    I have been trying to work with dates on Visual Basic Version 3.

    Using a Textbox (Text1.text)

    I understand that "Format" is use to display the date as you like. But what
    type of input it needs?

    What is a date format?
    String "mm/dd/yyyy"?
    or
    Integer = mmddyyyy ?

    There are many functions to manipulate dates like
    DatePart
    DateDiff

    But what type of date is that I need to give to this functions?

    Any help is greatly appreciated.





  • Roy Riddex

    #2
    Re: Working with Dates, VB3

    > What is a date format?[color=blue]
    > String "mm/dd/yyyy"?
    > or
    > Integer = mmddyyyy ?
    >[/color]

    Not sure about VB3 but in VB6 you declare a date as 'date'
    i.e. Dim MyDate as Date


    Comment

    • Mad

      #3
      Re: Working with Dates, VB3

      Thanks, that help. but it look like my copy of VB# got some missing files.
      every I try to use DateDiff, DateAdd or any of the date manipulation
      commands it gives me a File not Found error message.

      I have been trying to get a better version but it seems in my country is
      hard to get. I try to get direct from Microsoft but my country is not even
      listed (PR). so I am stock using VB3. anyway if someone can help me to write
      a routine to make up for DateDiff and DateAdd it will be greatly
      appreciated.


      "Roy Riddex" <roy_riddexNOSP [email protected] o.uk> wrote in message
      news:W1_Mb.17$_ [email protected] er.co.uk...[color=blue][color=green]
      > > What is a date format?
      > > String "mm/dd/yyyy"?
      > > or
      > > Integer = mmddyyyy ?
      > >[/color]
      >
      > Not sure about VB3 but in VB6 you declare a date as 'date'
      > i.e. Dim MyDate as Date
      >
      >[/color]



      Comment

      Working...