The description of the CreatePeriodFormat function is as follows:
- Calling parameters (PeriodType (Option, integer), Date (date))
- Returns text, length 10
The calling syntax for the CreatePeriodFormat function is as follows:
FormattedDate := CreatePeriodFormat(PeriodType,DateData)
CreatePeriodFormat allows us to supply a date and specify which of its format options we want through the PeriodType. The function's return value is a ten-character formatted text value, for example, mm/dd/yy or ww/yyyy, mon/yyyy, qtr/yyyy, or yyyy.