Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 32
Registered: ‎10-03-2011
My Device: 9900
My Carrier: developer

Date Format



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?

Posts: 17,024
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
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