• Post Reply Bookmark Topic Watch Topic
  • New Topic

file.lastModified() question  RSS feed

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to convert the return value in a "human readable value"
Is there any function to convert to that form?

 
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"new java.util.Date(theValue).toString()" is the most direct way. There are plenty of other things you can do to have control over the format.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!