title: Read and Write Date/Calendar to a txt file in java
body: <p>How can I read and write a Date/Calendar to a txt file.
  I want to store the map of Date,String key value pair to a text file and be able to restore it
  back into a map.
  What I did right now is just looping through all of the map and write Date.tostring() + “," + string to the txt file but I don't know how to restore Date.tostring() to a Date, by the way, is there any possibility I only want year/month/date/hour/minutes but no time zone in my Date.tostring() and still restore it back into a Date object?</p>