Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
datetime.now() return the current date & time of the system but i have to get the current date & time of the user system who is using it ,
E.g when a user post something the current date & time save in database are of the server not the user system ,
Can anyone help , how do i get date and time of the user system not from server machine
my Code

VB
Dim d As String
           d = DateTime.Now.ToString("hh:mm dddd, dd/MM/yyyy")
Posted

You can trace the IP and according to IP's local time you can get the date of the post according to user.

Yes Proxy can be misleading but I have no better idea

Or you can get current date in javascript and get with ajax.
 
Share this answer
 
v2

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