-
How to extract time portion from a Date-object and use it as a String in J2ME?
-
How to convert that time-string back to Date – object in J2ME?
I have done something to achieve this, but it is not showing correct-time.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I use the following code to get time:
You get numbers and then you can output them in any necessary format.
The code to create Date object is something like this:
That’ll do the trick.