| Author |
Creating a timestamp in visual basic
|
|
|
| Hi,
Im trying to create a linux Epoch timestamp in visual basic. The reason for
this is im creating a application that uses a database to store records. And
i need to be able to display records within a four hour period of this
date. I dont know if visual basic provides any timestamping features as all
i can find is creating a date in a format of MM/DD/YYYY for example and that
is not suitable for waht i need. Does anyone know of any code for what im
looking for? Or is this possible another way?
Thanks
Jamie
| |
| Jeff Johnson [MVP:VB] 2005-02-26, 8:55 pm |
|
"Jamie" <jammie@pc-forums.net> wrote in message
news:%233LwqlDHFHA.1396@TK2MSFTNGP10.phx.gbl...
> Im trying to create a linux Epoch timestamp in visual basic. The reason
> for this is im creating a application that uses a database to store
> records. And i need to be able to display records within a four hour
> period of this date. I dont know if visual basic provides any timestamping
> features as all i can find is creating a date in a format of MM/DD/YYYY
> for example and that is not suitable for waht i need. Does anyone know of
> any code for what im looking for? Or is this possible another way?
Use the Date data type and the DateDiff() function. Or am I not
understanding the question?
| |
|
| Yes u did, however i also need the function to work down to the exact hour.
Would DateDiff work down to the difference in hours?
"Jeff Johnson [MVP:VB]" <i.get@enough.spam> wrote in message
news:e%23KUqyDHFHA.2356@TK2MSFTNGP12.phx.gbl...
>
> "Jamie" <jammie@pc-forums.net> wrote in message
> news:%233LwqlDHFHA.1396@TK2MSFTNGP10.phx.gbl...
>
>
> Use the Date data type and the DateDiff() function. Or am I not
> understanding the question?
>
| |
| JP Bless 2005-02-27, 3:55 am |
| How about format(Now, "mm/dd/yyyy HH")
"Jamie" <jammie@pc-forums.net> wrote in message
news:O U6DHFHA.2924@TK2MSFTNGP15.phx.gbl...
> Yes u did, however i also need the function to work down to the exact
hour.
> Would DateDiff work down to the difference in hours?
> "Jeff Johnson [MVP:VB]" <i.get@enough.spam> wrote in message
> news:e%23KUqyDHFHA.2356@TK2MSFTNGP12.phx.gbl...
of[color=darkred]
>
>
| |
| Jeff Johnson [MVP:VB] 2005-02-27, 3:55 am |
|
"Jamie" <jammie@pc-forums.net> wrote in message
news:O U6DHFHA.2924@TK2MSFTNGP15.phx.gbl...
> Yes u did, however i also need the function to work down to the exact
> hour. Would DateDiff work down to the difference in hours?
Looking up DateDiff in MSDN would answer that question quickly....
|
|
|
|