Do anybody can help me by telling me how to :
Get NT Server Date/Time from a Win95/98/2k?
Besides, do anybody have experience in doing the same thing, from Unix instead of NT?
Thanks
Printable View
Do anybody can help me by telling me how to :
Get NT Server Date/Time from a Win95/98/2k?
Besides, do anybody have experience in doing the same thing, from Unix instead of NT?
Thanks
you can just use the now function or the date function
msgbox now
msgbox date
A vb prog cannot even be run in UNIX, so please forget that:).
I am talking about reading the NT Server Date/Time from a VB program running under Win95/Win98/Win2000. Not the LOCAL PC DATE/TIME.
For reading Unix date/time, I am looking for anyway to use TCP/IP to communicate with Unix and see whether there is any standard port (like port 7 for echo, etc) that can provide date/time information.
The normal "Now" should work on any win version.
Sorry, Escaflowne
I think you still not understand what I am looking for.
I AM NOT RUNNING THE VB PROGRAM IN NT,
what I mean is there are 2 machines, one is NT server (A), the other is any machine B (Win95/98/2k)
What I need is run the program in machine B but read the date and time of machine A.
I hope this can make it clear.
finally !!!
O.k, this is easy !
All you need to do is having an ASP on the server showing just the time on that machine (machine B - the server).
What you do is access the page and parse it to get the time.
you need to add the internet transfer control to your form and use it to get the content of the ASP page (which would only be the time)
example:
Dim strTime
strTime = Inet1.OpenURL("http://serverIP/timepage.asp")
MsgBox strTime
if you have any questions, just say so ...
Thank you asabi,
this seems to be a workable solution, except, I worry about the performance.
Since I need to resynchonise the date/time for every transaction.
if the server has a good connection, then it won't be a problem...
it is less then a mil sec ... the whole page will just have the time (about 8 characters ..). it is probably less then 1 kb to load ..