Subtraction date

James111James111 Member Posts: 63
Hello my friend,

I have problem:

I would like subtraction two dates :

ExampleDate := "Documen Date" - "Due Date" ;

But i get message: The date is not valid.

Comments

  • MBergerMBerger Member Posts: 413
    Subtracting a date form a date will result in an integer ( the difference in days ), not another date.
  • James111James111 Member Posts: 63
    I want result in integer.. but it doesn't work.
  • kinekine Member Posts: 12,562
    And are you sure, that there is no 0D? And why the target variable is named Date if you want to have integer?
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.