In COBOL, how can you format a date in a specific way for displaying to the user or writing to a file?

  • FUNCTION CURRENT-DATE
  • FUNCTION DATE-ADD
  • FUNCTION FORMAT-TIME
  • FUNCTION NUMVAL
To format a date in COBOL for display or file output, the FUNCTION FORMAT-TIME is used. It allows programmers to define the desired format for presenting date and time information.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *