I have a program that can extract sections / part time of a text log file using tokenization.
The main goal of the program, which is to extract part of the time, then move on to converting the string to DateTime format, which can then be used as part of the Time Range timeline.
However, converting the time to DateTime, the system displays the results in "11/23/2010 9:31:00 PM", which correctly converts the time into a 12-hour format, but uses the Date function.
So the question is how to convert the time and NOT output or process the date. And how can I convert the time into a 24-hour format in HH: MM: SS?
Consult the codes. Thanks!
class Program { static void Main(string[] args) {
Java noob
source share