A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Appending Date and TimeStamp to the File name
Ravi Kiran Va
Joined: Apr 18, 2009
Jul 14, 2010 06:25:30
I need to append date and Time Stamp to the File .
I have tried this, but its not working
File f = new File("D:/FILEPATH/Clear.DAT"); String fileName = f.getName(); fileName = fileName+new java.util.Date() +".DAT"; system.out.println(fileName)
Save India From Corruption - Anna Hazare.
Joined: Oct 13, 2005
Jul 14, 2010 06:34:57
Joined: Oct 27, 2005
Jul 14, 2010 13:14:29
and its subclasses are your friends
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions
How To Answer Questions
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Appending Date and TimeStamp to the File name
Sorting Date & Time
Help with java input file
file name loop
Check the file/found or not
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015