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
Trusted Contributor
ashish12169
Posts: 200
Registered: ‎03-18-2012
My Carrier: Company
Accepted Solution

how to convert string to milliseconds

Hi,

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

 

Please use plain text.
Developer
simon_hain
Posts: 13,817
Registered: ‎07-29-2008
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
Please use plain text.
Developer
Dionysus
Posts: 152
Registered: ‎07-28-2011
My Carrier: MTN

Re: how to convert string to milliseconds

Have a look at the following link:

 

http://mindprod.com/jgloss/calendar.html

 

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

Please use plain text.