File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Convert Hours to MilliSeconds Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Convert Hours to MilliSeconds" Watch "Convert Hours to MilliSeconds" New topic

Convert Hours to MilliSeconds

Ronnie Phelps
Ranch Hand

Joined: Mar 12, 2001
Posts: 329
If I have a time like 2300 or 0500. How can I convert this to milliseconds in order to store this in a Calendar or Date Object?
John Lee
Ranch Hand

Joined: Aug 05, 2001
Posts: 2545
please refer to:
I agree. Here's the link:
subject: Convert Hours to MilliSeconds
jQuery in Action, 3rd edition