How to find the Start date and End Date of the Current month
chandrurec
Member Posts: 560
Hi all,
I am getting the date from the user. Based on the entered date , I want to find the Start date and End Date for the repective current month. Is it possible to find the start date and end date of the current month based on the entered date.
Thanks in advance.
Regards,
Chandru.
I am getting the date from the user. Based on the entered date , I want to find the Start date and End Date for the repective current month. Is it possible to find the start date and end date of the current month based on the entered date.
Thanks in advance.
Regards,
Chandru.
0
Comments
-
Hi,
use the DATE2DMY to get the Motn and Year and store in a defined variables of type integer and then use the DMY2DATE to get the start date, obvious that the Start date is going to start with 01, and then you can go on using the CALCDATE function to get the end date of the month and year.
Hope this helpsDiptish Naskar
For any queries you can also visit my blog site: http://msnavarena.blogspot.com/0 -
Hi,
Do you want to get First Date and End Date of the month or from Current Account Period?
If your answer is the first then use this. I got from Navision Girl and it works.
CALCDATE ('CM', date) will return the last day of the month.
To get the first day of the month,
use CALCDATE ('CM-1M+1D', date);0 -
Hi,
Heres how it can be doneLastDate:=CALCDATE('CM',YourDate); FirstDate:=CALCDATE('-CM',YourDate);Hope this helped.
Mayank
http://extremeengineers.net1
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
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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