How can I get the current time in C#?
DateTime.Now.ToString("HH:mm:ss tt");
this gives it to you as a string.
DateTime.Now is what you're searching for...
DateTime.Now.ToString("HH:mm:ss tt");
this gives it to you as a string.
DateTime.Now is what you're searching for...