<%@ Import Namespace="System" %>
<%@ Import Namespace="System.Globalization" %>
<%@ Import Namespace="Microsoft.VisualBasic" %>
<%@ OutputCache Duration="3600" VaryByParam="none" %>
<script language="VB" runat=server>
Sub Page_Load(sender As Object, e As EventArgs)
' Get the local time zone and the current local time and year.
Dim localZone As TimeZone = TimeZone.CurrentTimeZone
Dim currentDate As DateTime = DateTime.Now
' Get the current Coordinated Universal Time (UTC)
Dim currentUTC As DateTime = _
localZone.ToUniversalTime( currentDate )
label1.text = "Server Date:" & currentDate
label2.text = "UTC:" & currentUTC
label3.text = "AZ Time:" & DateAdd("h",-7,currentUTC)
End Sub
</script>
<html dir="ltr" xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled 1</title>
</head>
<body>
<form id="form1" runat="server">
<asp:Label runat="server" id="Label1"></asp:Label><br />
<asp:Label runat="server" id="Label2"></asp:Label><br />
<asp:Label runat="server" id="Label3"></asp:Label><br />
<div style="font-family: Arial, 'Microsoft Sans Serif';font-size: 10pt;">
</div>
</form>
</body>
</html>