Solved

Convert 07:38:24 to mins

Posted on 2004-10-12
1
132 Views
Last Modified: 2013-12-24
The data is inserted into the db like 07:38:24

I'm not concerned about the seconds part...how can I convert this into one variable that is just minutes? The output would be 458

Also, 00:45:55 would be 45
0
Comment
Question by:JRockFL
1 Comment
 
LVL 35

Accepted Solution

by:
mrichmon earned 50 total points
ID: 12291728
<cfset myTime = "07:38:24">

<cfset myMin =( ListFirst(myTime, ":") * 60) + ListGetAt(myTime, 2, ":")>
0

Featured Post

Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now