Display date of values in right margin

I'm sorry but I have searched and can not find a solution for this. Using title and printf commands, I want to simply display the last visible date of the values displayed in the right margin as I scroll the screen. I have been using LastVisibleValue( Ref( DateTime(), -1 ) ) which works but the last bar date does not increment and shows the second to the last date and is out of sync with the values by 1 day. Please be kind, I have spend a considerable amount of time trying to work around this and it has stumped me.

Please also be kind and read the following thread: License Verified Badge