I’m running an application which gives me CSV logs as output. For the date field, it gives it to me in the following form:
“09/25/2012 08:47:46.983”
I want to read in the output data into a Java program, translating the output given and storing it as a long in my program. Does the DateFormat class or other similar class in Java allow me to specify a string in the above form? (I can write my own code to parse the above line, but I didn’t want to make bad assumptions about the form of the incoming string.)
1 Answer