The description of the CreatePeriodFormat function is:
- Calling Parameters (PeriodType (Option, integer), Date (date))
- Returns - Text, length 10
The calling syntax for the CreatePeriodFormat function is:
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.