ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Date minus date

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Date minus date

    does anyone know how to do an eval statement for Date2 minus Date1 ?? in the end will get the answer in days.
    pls help as it is urgent. thank you

  • #2
    Re: Date minus date

    PHP Code:
     /FREE
     
       
    // Determine the number of days between the 2 dates
       
    num_days = %DIFF (loandateduedate: *DAYS);
     
       
    // Add number of minutes between the start and end
       
    time time + %DIFF (startend: *minutes);
     /
    END-FREE 
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Date minus date

      a very thank you to you again, jamief.

      Comment

      Working...
      X