Server Time and Date

cjhammer2004

Newcomer
Joined
Jun 27, 2005
Messages
5
Is there anyway of getting the Server Data and Time via ASP.Net for example Request.ServerVariables("Date_Time")?

Many Thanks
 
Thanks for your reply, I have done what you have suggested but the date and time seems to be taken from the Client pc and not the server hosting the ASP.Net page.

Any suggestions would be greatly appreciated.
 
<script runat="server">

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Me.Title = "Forums (" & DateValue(Now()) & ")"
If Month(DateValue(DateTime.Now)) > 6 And Month(DateValue(DateTime.Now)) < 10 Then New.Visible = True
End Sub
</script>
 
Back
Top