I want to name new files created by my Java application with the current timestamp.
I need help with this. How do I name the new files created with the current timestamp
Use SimpleDateFormat as aix suggested to format the current time into a string. You should use a format that does not include / characters etc. I would suggest something like yyyyMMddhhmm
SimpleDateFormat
/
yyyyMMddhhmm