How is the best way to calculate the time...
Franklin
Member Posts: 253
How is the best way to calculate the time it takes to place an order, since it was created until it is registered?
I have created two fields of type TIME. One is informed OnInsert trigger and the other when you register it and then, subtract from each other but the result I get weird numbers ...
X example...
Since time = 11:29:37,197
To time = 11:31:18,23
Total = 101032
:-k
This result isn´t valid for me... I want the result in seconds for example...
I have created two fields of type TIME. One is informed OnInsert trigger and the other when you register it and then, subtract from each other but the result I get weird numbers ...
X example...
Since time = 11:29:37,197
To time = 11:31:18,23
Total = 101032
:-k
This result isn´t valid for me... I want the result in seconds for example...
0
Comments
-
try applying the time conversion from millisecond to second... multiply the result in 0.0010
-
Ohhhh the results is in milisenconds... ](*,)
I´ll ty... thx a lot!!0 -
-
Do you really think that just time is enough? What about before and after midnight? I will use datetime and duration for this...0
-
DenSter wrote:There's also a 'duration' data type, see if that is what you need.
Mmmm i don´t know this function... let me see...
Kine the operations are around 3 or 4 minutes... not more... i think time is enough thx!!
EDIT: DenSter this datatype is perfect... it´s just i was triyng to find!!!0 -
Franklin wrote:
Kine the operations are around 3 or 4 minutes... not more... i think time is enough thx!!
A short cut is the longest path between two points. Your laziness may save time now, but it will come back and bite you in the future.David Singleton0 -
Ok, 3 minutes, are you sure that it will not be 23:59 and 00:01?0
-
Finally i´m using a field dataype duration as DenSter said... it´s perfect!!
Thx Kine and David Singleton too!!0 -
Cool, now all you need to do is make sure that you listened to Kamil and David, and implement datetime data types instead of just Time.0
-
Sure!!
:thumbsup:0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions


