Timestamp

G

Guest

I have seen the previous questions regarding inserting timestamps into a
hidden field but I am required to do something slightly different: I need a
timestamp in a hidden field that will give the current date and time
expressed as the number of milliseconds elapsed since Jan 1st 1970
00:00:00:00 GMT. Just how do i achieve that?? Thanks in advance...
 
S

Steve Easton

There is a visual basic function to get the time since 1/1/1970
But it's going to be a huge number in milliseconds.

Look for a news group named: microsoft.public.vb.general.discussion

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
S

Stefan B Rusynko

The default time for a date function is 12:00:00 AM
So the # of seconds from Jan 1 1970 00:00:00 is

noSec = DateDiff("s",DateValue("Jan 1 1970"),Now())

TBMK
you can't get/compute the Now milliseconds (seconds is lowest time you can get)

As for the GMT to local difference depends on your server time setting
--




|I have seen the previous questions regarding inserting timestamps into a
| hidden field but I am required to do something slightly different: I need a
| timestamp in a hidden field that will give the current date and time
| expressed as the number of milliseconds elapsed since Jan 1st 1970
| 00:00:00:00 GMT. Just how do i achieve that?? Thanks in advance...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top