Forum Moderators: open
I need some information on how to get the server time and not system time in ASP.Net. When I try this:
<%
dim dtmdate as datetime
dtmdate = datetime.now()
response.write(dtmdate.tostring("f"))
%>
I get the time on my local machine. However, I want the time on the server to be displayed so that the user cannot manipulate the time.
Please help.
Thanks
Sukumar
<script runat="server">
sub page_load
textbox1.text = datetime.now()
end sub
</script>
The textbox1.text is the the textbox in which the time will be displayed.
Thanks for all those who responded.
Bye