The format is the default format for the element type of the Period expression or the format of the end column if the argument is a derived period column.
If an argument of any data type other than a Period data type is passed to the function, an error is reported.