Time = DateAndTime.Now.ToString TimeOnly = Time.Substring(11, 5)
var result = string.Format("{0}:{1}", DateTime.Now.Hour, DateTime.Now.Minute);
System.DateTime.ToString
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)