How can I format the Date[N] variable in a column of the screener.
It ‘translates’ YYYYMMDD’ to a numeric value.
IT IS a numeric value. ProRealTime only supports floating point numeric data,
A date is usually displayed, with DrawText, as 20M (20 million).
You can try to remove the two leftmost digits (20), with this trick, so that 20210526 is abridged to 210526, but it will be reported with the thousands separator and, for years 0 to 9 the leading 0’s will be dropped (not tested):
x = round((date / 1000000) - 0.5)
y = x * 1000000
MyDate = date - y
Hi Roberto, thanks for your solution, works great!
I created a millennium-bug by taking a shortcut to your code by just subtracting 20000000 🙂