Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Java Micro Edition and the fly likes Alternative for formatting dates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Alternative for formatting dates" Watch "Alternative for formatting dates" New topic
Author

Alternative for formatting dates

chetan dhumane
Ranch Hand

Joined: Jan 07, 2009
Posts: 634

Is their any alternative for java.text.SimpleDateFormat in J2ME?

I want to print date in this format : MMddHHmmss

Thanks in advance.


Author @ http://www.ideasforideas.org/
Moody blogger who do not like to behave like target setting machines work.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16725
    
  25

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Amila Jayatillaka
Greenhorn

Joined: Sep 29, 2006
Posts: 28
I think you can use Calender class and do this.
You will have to implement your own methods to do this anyway...


SCJP 1.4, SCMAD 1.0, SCWCD 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Alternative for formatting dates