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: 214
Registered: ‎03-18-2012
My Device: 8520
My Carrier: Company
Accepted Solution

how to convert string to milliseconds


     please suggest how i can convert a string(09 oct 1989) to milliseconds......


Posts: 16,864
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how to convert string to milliseconds

if it has a certain format you can use HttpDateParser, otherwise create a calendar object, set the relevant values and get the time from it.
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
Posts: 152
Registered: ‎07-28-2011
My Device: Bold 9900
My Carrier: MTN

Re: how to convert string to milliseconds

Have a look at the following link:




It will give you a good understanding of date, time and calender in java