Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello excuse me for bad Spelling!
I want to get the client date and time from my server?
by vb.net
Posted
Comments
[no name] 6-Jul-12 7:52am    
It's not the bad spelling it's the total lack of information about what you are trying to do. How are you connecting to the server? What server? Did you write a function in the server that will return the current date and time?
bbirajdar 7-Jul-12 0:47am    
Who is your client? Call him on his phone and ask him the date and time....

you can do it with java script. get client time and redirect another page use query string to pass client time. then capture it.
 
Share this answer
 
hello,

use Now function , that will return you a system date

i hope this will help you.
 
Share this answer
 
hello,

DateTime dt= System.DateTime.Now;
it gives You Server Date Time and You want to get only Date
than use

DateTime.Now.days;
DateTime.Now.Date;
also use DateTime.Now.DayOfWeek;
And So many function.....
 
Share this answer
 
Comments
davoodta 6-Jul-12 6:14am    
but this is for current system and not from server system!
from windows server for all clients user
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900