Convert Now (current date) to string (C#)
<script language="c#" runat="server"> void Page_Load() { time.Text=DateTime.Now.Hour.ToString() + ":" + DateTime.Now.Minute.ToString() + ":" + DateTime.Now.Second.ToString(); } </script> <html> <head><title>The Punctual Web Server</title></head> <body> <h1>Welcome</h1> In WebServerLand the time is currently: <asp:label id="time" runat="server" /> </body> </html>