1.

What Is The Best Way To Output Only Time And Not Date?

Answer»

USE DATETIME as follows VB.NET
Response.Write(DateTime.Now.ToString("hh:MM:ss"))

C#
Response.Write(DateTime.Now.ToString("hh:mm:ss"));

Use DateTime as follows VB.NET
Response.Write(DateTime.Now.ToString("hh:mm:ss"))

C#
Response.Write(DateTime.Now.ToString("hh:mm:ss"));



Discussion

No Comment Found