Is it possible to store the current date in a file but no as a string?
What I mean:
If I use :
SimpleDateFormat thedate = new SimpleDateFormat("dd/MM/yyyy");
Date d=new Date();
String formattedDate=thedate.format(d);
date.add(formattedDate);
It stores (with the format I want) in date list (which is a String List).
I want 'date' to be a Date List and store it to a file.
Is it possible to store it as dd/MM/yyyy ?Because like this:
SimpleDateFormat thedate = new SimpleDateFormat("dd/MM/yyyy");
Date d=new Date();
date.add(d);
it stores as
Thu Apr 18 17:06:14 GMT+03:00 2013