r/programminghelp • u/No_Championship1324 • Dec 09 '23
Java Get Dates from CSV
Have a bunch of invoices from work. They’re all saved as CSV. Creating a Java program that reads through the csv and saves it in excel workbook. The goal is a different workbook for each year. Looking for help/insight on a method/code that would help me find year from the csv data, and from that save it in the proper workbook.
I know the date format is mm/dd/yyyy
I tried using if sc.next.length = 10 (10 is the length of the date) but had no luck there.
1
Upvotes
View all comments
Show parent comment
1
u/ConstructedNewt MOD Dec 11 '23
If it has a date Excel or tour Java program should be able to parse it. I really don’t know where to guide you because you are not telling what you want; what is the next step when these inviices are indexed by date