• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Alternative for formatting dates

 
chetan dhumane
Ranch Hand
Posts: 641
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is their any alternative for java.text.SimpleDateFormat in J2ME?

I want to print date in this format : MMddHHmmss

Thanks in advance.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17995
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd have to go read the J2ME JavaDocs to be sure. But in the standard Java, SimpleDateFormat subclasses DateFormat, and DateFormat allows user-defined date/time patterns.
 
Amila Jayatillaka
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can use Calender class and do this.
You will have to implement your own methods to do this anyway...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic