Hi
I am getting above error on below code
StDate is Date DataType
yy is Integer DataType
yy := DATE2DMY(StDate,3);
IF MM > 3 THEN
Yr := DMY2DATE(1,4,yy)
Thanks
*This post is locked for comments
Hi,
I noticed that you posted many technical questions in the community lately. I strongly recommend you to start learning C/AL by reading official documentation. If you work for a partner, then ask your employer for a DLP account and enjoy reading :). I believe the DLP is also available for customers on CustomerSource Portal.
Of course, you can ask all your questions here. NAV community will be glad to help you.
On another note and in order to help you focus on the current question. Start reading here docs.microsoft.com/.../c-al-data-types and here msdn.microsoft.com/.../dd301283(v=nav.90).aspx
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156