The DATEFORMAT parameter is used in ProBuilder to format screener output as dates. When applied, numeric values representing dates are converted into a readable date format.
number = 20221202
SCREENER(number AS "Formatted Date" DATEFORMAT)
number holds a numeric value representing a date (20221202, which corresponds to December 2, 2022).SCREENER function is used to display values in a custom format.DATEFORMAT instruction converts the numeric value into a human-readable date format.Expected Output: 2 Dec 2022
This is particularly useful when handling historical data and ensuring date values are properly formatted in screener results.