Test date

Testing the date part to see how Calendar class works.

Changed the method for writing information of food to the file to a for
loop instead of just writing the latest one.