title: Date & Time Separation
body: <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head runat="server"&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
          &lt;input id="inpHide" type="hidden" runat="server" /&gt;
          &lt;input id="inpHide1" type="hidden" runat="server" /&gt;
          &lt;asp:Label ID="Label1" runat="server"&gt;&lt;/asp:Label&gt;
          &lt;asp:Label ID="Label2" runat="server"&gt;&lt;/asp:Label&gt;
          &lt;asp:Label ID="Label3" runat="server"&gt;&lt;/asp:Label&gt;
      &lt;asp:Button ID="Button1" runat="server" onclick="Button1_Click" Width="100px" Height="30px" Text="Button" /&gt;
      &lt;/div&gt;
      &lt;script language="javascript" type="text/javascript"&gt;
          var current_date = new Date();
          var current_timezone = current_date.getTimezoneOffset();
          document.getElementById("inpHide").value = current_timezone * -1;
          document.getElementById("inpHide1").value = current_date;
          &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  protected void Button1_Click(object sender, EventArgs e)
  {
          Label1.Text = inpHide.Value.Trim();
              Label2.Text = inpHide1.Value.Trim();
              Label3.Text = Label2.Text;
  }
  </code></pre>