public string GetCurrentTime() { DateTime now = DateTime.Now; string time = now.ToString(“HH:mm:ss”); return time; }