I am using android.text.format.DateFormat.format("yyyy-MM-dd hh:mm:ss", new java.util.Date()) to get time & date. The problem is it isn’t formated in a way that I can use it as part of a filename – I am creating log files, and I need the format of like 20111123_123412 or something that is possible to directly use as part of a file name. How do I get that easily from Android?
THanks
What about this?
EDIT:
I used Something like,