No. Months Calculation Between Two Dates
KumarAlagarsamy
Member Posts: 3
hi guys
i have to calculate No. of months between Two dates called "Loan Date" and "Salary Date". Suppose "Loan Date" is 5/10/2004 and "Salary Date" is 30/10/2006, i need to calculate No. of Month available between these two date.
Is there any functions available in navision to calculate months between two date?. kindly help me to rectify this problem.
i have to calculate No. of months between Two dates called "Loan Date" and "Salary Date". Suppose "Loan Date" is 5/10/2004 and "Salary Date" is 30/10/2006, i need to calculate No. of Month available between these two date.
Is there any functions available in navision to calculate months between two date?. kindly help me to rectify this problem.
0
Comments
-
It depends on the rounding, does 30-9 to 2-10 is 2 months?
You can use the date table with the filter on months and set filters with DMY2DATE(); and then count the no. of records.0 -
hai Mark


the rounding is exactly correct what u said.
could u please explain how to set filter to get Months?
regards
Kumar0 -
In Navision there is a virtual table named Date [2000000007]. Or something in your language.
this contains all days, weeks, months and years between 01010000 and 31129999.
If you filter this table on months starting from the first day of the first month and ending at the first day of the last month you should be able to count the records resulting in the no. of months.
Try to create a form on this table and you'll see.0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 333 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
