date calc API/routine

 2 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Chesca
Veteran Member
Posts: 490
Veteran Member
    Is there a routine/API to return the last day in a given month or return a date such as 1/31/2014?
    Woozy
    Veteran Member
    Posts: 709
    Veteran Member
      You should be able to use "900-GET-DATE-EOM"

      MOVE DATE-YYYY-MM-DD TO WSDR-FR-DATE
      PERFORM 900-GET-DATE-EOM
      MOVE WSDR-TO-DATE TO DATE-YYYY-MM-DD
       
        
      See document "Lawson 4GL Application Program Interfaces" for details.

      NOTE:  You will need to reformat the output date to your required format in the WS.
         
      Good Luck!
      Kelly Meade
      J. R. Simplot Company
      Boise, ID
      Chesca
      Veteran Member
      Posts: 490
      Veteran Member
        That worked, thank you Woozy!