Question
ColdFusion Query Help
Hello All,
I've basically got a query that starts a project like 11:57 (varchar) inserts just fine. Then I've got a project end time like 12:40 (varchar) again inserts just fine. Then I query the endtime to minus the starttime and getting bad results. Here is the example of my code:
<cfset thisProjectEnd = (totalProjectTime.projectEnd - totalProjectTime.projectStart)>
the outcome inserted into the DB is: -0.109027777777
Any clues on how to format this correctly to other than Removing Characters? Thanks in advance for any suggestions!
I've basically got a query that starts a project like 11:57 (varchar) inserts just fine. Then I've got a project end time like 12:40 (varchar) again inserts just fine. Then I query the endtime to minus the starttime and getting bad results. Here is the example of my code:
<cfset thisProjectEnd = (totalProjectTime.projectEnd - totalProjectTime.projectStart)>
the outcome inserted into the DB is: -0.109027777777
Any clues on how to format this correctly to other than Removing Characters? Thanks in advance for any suggestions!
