Converting integer to date

poppinspoppins Member Posts: 647
Hi everyone,

How can I convert an integer to a date under Nav 2009???

Comments

  • BeliasBelias Member Posts: 2,998
    what does it mean?
    which date is 2145, or 765444444444?
    please be more specific...what kind of integer do you want to convert?
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • poppinspoppins Member Posts: 647
    I have a field that indicates the number of remaining days before starting the payment of a loan...in the table the field type is Integer...
  • SogSog Member Posts: 1,023
    Then you don't want to convert the integer to a date.
    But calculate a new date based on the current date and the integer.

    Check calcdate or calcdateboc (function in calendar codeunit)
    |Pressing F1 is so much faster than opening your browser|
    |To-Increase|
  • poppinspoppins Member Posts: 647
    Thanks for the idea, I will try that...
  • thegunzothegunzo Member Posts: 274
    NewDate := TODAY + NoOfDays;
    ________________________________
    Gunnar Gestsson
    Microsoft Certified IT Professional
    Dynamics NAV MVP
    http://www.dynamics.is
    http://Objects4NAV.com
Sign In or Register to comment.