Please can one help me with a better way of Converting Date( in Hour and Minutes) in to Double or Integers.
I want to use it for arithmetic purpose
e.g, if the Date Input is 6 hrs:30min, then i want it converted in to 6.5, ....or 12 hrs: 15 min into 12.25. I will appreciate if any programmer can help me out..
adaku
0
Newbie Poster
Recommended Answers
Jump to PostThere are several classes for dealing with dates. Date and Calendar for example.
If the times are as simple as your example, then take the minutes divide by 60 and add to the hours.
All 3 Replies
NormR1
563
Posting Sage
Team Colleague
adaku
0
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.