Date Time Conversion

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

    Date Time Conversion

    Hi all.

    I have a number the is the number of seconds from 1/1/1970. Is there a
    function in VB that will convert it to some thing more readable? some ting
    similar to time_t in c++

    Thanks

    Dan...


  • Rick Rothstein

    #2
    Re: Date Time Conversion

    > I have a number the is the number of seconds from 1/1/1970. Is there a[color=blue]
    > function in VB that will convert it to some thing more readable? some ting
    > similar to time_t in c++[/color]

    Use the DateAdd function to convert the number of seconds to a date.

    Rick - MVP


    Comment

    • Dan E.

      #3
      Re: Date Time Conversion

      Thanks,
      Rick. It work Perfectly.
      Dan...

      "Rick Rothstein" <rickNOSPAMnews @NOSPAMcomcast. net> wrote in message
      news:FZ-dnYsALZPfgavd4p 2dnA@comcast.co m...[color=blue][color=green]
      > > I have a number the is the number of seconds from 1/1/1970. Is there a
      > > function in VB that will convert it to some thing more readable? some[/color][/color]
      ting[color=blue][color=green]
      > > similar to time_t in c++[/color]
      >
      > Use the DateAdd function to convert the number of seconds to a date.
      >
      > Rick - MVP
      >
      >[/color]


      Comment

      Working...