By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,593 Members | 2,006 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,593 IT Pros & Developers. It's quick & easy.

How to take the server time in VB 6

P: 6
Hi,

Please help me i have to system time of the server (i.e. system time where SQL Server is available).
please help me

Thanks in advance.
Nov 26 '07 #1
Share this Question
Share on Google+
4 Replies


QVeen72
Expert 100+
P: 1,445
Hi,

Open a Recordset with this query:

Select GetDate()

Regards
Veena
Nov 26 '07 #2

P: 6
Hi Veena,

If the exe file runs in the client it will take client time right ?

Muiz
Nov 26 '07 #3

QVeen72
Expert 100+
P: 1,445
Hi,

With SQL Server, it returns, Server's Date..
Open Recordset and populate it to some Local Variable..

Regards
Veena
Nov 26 '07 #4

P: 6
Hi Veena,

Its working..
Thanks you very much....
Have a nice day.

Muiz
Nov 26 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.