Is there a Java function which retrieves todays name (e.g. Friday) from the OS?
I'm writing a GUI program which draws tick for how many days you've run the program consecutively.
So if i first run it on sunday, it will show one tick. If i run it again on monday, two ticks. If i skip a day and run it on wednesday, it will start over and show one tick, because monday and wednesday aren't consecutive.
Yesterday I wrote some 150 lines of code to make three combo boxes: day, month and year so that the user can enter a date and the program calculates what day is today and writes it to a file.
I wanted to do that for the sake of practice. But now i want to know, for the sake of knowledge, could I have used some java function which would automatically retrieve todays day from the Operating System?