Hi,
Could somebody tell me how I can convert date that I am reading from txt file to a different format for example from 'DD,MM,YYYY HH:MM:SS' to 'MM/DD/YYYY HH:MM:SS' in my new CSV file. This is part of my code only to give an idea what I am trying:
public void writeToTXT(BufferedWriter writer) throws IOException {
writer.write(writeCSV(datetime) + columnDelimiter);
writer.write(writeCSV(name) + columnDelimiter);
writer.write(writeCSV(surname) + columnDelimiter);
writer.newLine();
}
Thanks in advance