How to get the Last Day of a period?

selece28
Member Posts: 316
Hi All,
I have a problem. I have a text field consist of year and month.
Example : 200001, 200011, 200012, etc
I want to make this period into Date format in Nav.
But i need the last date for the period first do i can use DMY2DATE function.
Is anyone know how to get the last date?
Thanks in advance
I have a problem. I have a text field consist of year and month.
Example : 200001, 200011, 200012, etc
I want to make this period into Date format in Nav.
But i need the last date for the period first do i can use DMY2DATE function.
Is anyone know how to get the last date?
Thanks in advance
______________
Regards,
Steven
Regards,
Steven
0
Answers
-
1) Split the string to Year and Month no.
2) Assign these values into Integer variable (Evaluate function)
3) Make the date for 1st day of the month
4) Use CALCDATE with <+CM> to get the last date of the period.0 -
Yes, finally solved
Thanks Kine______________
Regards,
Steven0 -
-
I need to have the First date of a fiscal year (year actual) and of previous fiscal year.
Is that possibile?
For example 01.01.2008 and 01.01.2007 for a date of today.
The fiscal year could not be 01.01 as sun/solar year.
Thank you0 -
Wat about using the table "Accounting Period" to find it?
it means something like "Find last Accounting Period where New Fiscal Year is yes and Starting Date is less than today".
;-)0 -
.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 320 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