Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to convert String to long type?

843805Nov 20 2006 — edited Nov 20 2006
Hi,
I have this string from JSpinner:
"12:35", how to convert it to long?
I know to do this if it was "12" .
long miliSecTime = Long.parseLong(timeStr.trim());
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2006
Added on Nov 20 2006
3 comments
284 views