Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
kranthi4one
Posts: 27
Registered: ‎10-03-2011
My Carrier: developer

Date Format

hi,

 

I have date in this format 2011-11-02. From this date, how can we know the yearMonth and Day-of-month,

like in this format 01-jan-2013  from calendar or any other way?

Please use plain text.
Developer
simon_hain
Posts: 13,791
Registered: ‎07-29-2008
My Carrier: O2 Germany

Re: Date Format

you have a string with this value, correct?
unfortunately there is no flexible api date parser, so you have to parse it yourself, i suggest to use substring and calendar class.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.