Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Type conversion is not possible because 1 of the operators contains an Invalid type Integer := Date

Posted on by 3,027

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Type conversion is not possible because 1 of the operators contains an Invalid type Integer := Date

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans