This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello I want to display the time returned by the lastModified() method in the File class in a JSP page in a proper format but as it is returning me a time in milisecs it is useless is ther any methos which will take in time in miliseconds and return me time in a priper format thanks in Advance Amit Roy
hi amit, try java.util.Calendar; Calendar defines lots of constants to get the different components of time(year/month etc) Calendar c = Calendar.getInstance();; c.setTime(long milliseconds); then u can do a c.get(Calendar.YEAR)..and so on. hope it helps. karthik