Calendar functions

All function modules are contained in the function group SCAL.

  • DATE_COMPUTE_DAY
    This function module returns the day of the week for the date passed.
  • DATE_GET_WEEK
    This function module returns the week for the date passed.
  • WEEK_GET_FIRST_DAY
    This function module returns the first day of the week passed. (This is always a Monday, regardless of whether it is a working day or a holiday.)
  • EASTER_GET_DATE
    This function module returns the date of Easter Sunday for the year passed.
  • FACTORYDATE_CONVERT_TO_DATE
    This function module returns the calendar date for the factory date and the factory calendar passed.
  • DATE_CONVERT_TO_FACTORYDATE
    This function module returns the factory date for the date and factory calendar passed. You can specify with a parameter whether the next or the previous working day is returned if the day is not a working day.
  • HOLIDAY_CHECK_AND_GET_INFO
    With this function module, you test whether a particular date in the holiday calendar passed is a holiday. If so, the definition of the holiday is returned.