Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dateformatter...

 
Stacy Lee
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a given long millisecond value...
how can i get the date and time
like 07-12-01 (date) and 12:00:00 (time)
thank u very much....
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're looking for java.util.Date to cretae a Date from the miliseconds, then jvaa.text.SimpleDateFormat (extends java.text.DateFormat so you can use its functionality as well)
Dave.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic