Skip to content

KVSFCYProdOrderCompAndRouting#

Procedures#

GetDate(DateTime, Date) : Text#

Summary: Formats date and time values according to the specified display format option. This procedure provides flexible date and time formatting for production order reports based on user preferences. It supports displaying full date-time, date only, or calendar week format to accommodate different reporting needs.

procedure GetDate(DateTimePar: DateTime; DatePar: Date): Text

Parameters:

  • DateTimePar: The DateTime value to be formatted. If this is 0DT (empty), the procedure will use the DatePar parameter to create a DateTime value.
  • DatePar: The Date value to be used as fallback when DateTimePar is empty (0DT). This date will be combined with time 0T to create a DateTime for formatting.

Returns: A formatted text representation of the date/time based on the WhatDateTimeToShow option: full DateTime format, date only format, or calendar week format (CW followed by week number).