Source: StackOverflow
Question: How do I name the new files created with the current timestamp?
Answer:
String fileName = new SimpleDateFormat("yyyyMMddhhmm'.txt'").format(new Date());
Source: StackOverflow
Question: How do I name the new files created with the current timestamp?
Answer:
String fileName = new SimpleDateFormat("yyyyMMddhhmm'.txt'").format(new Date());