I’ve had a problem recently when it can to formatting a datetime as just date where FormatDateTime didn’t work
The fix was to change it to Format.
Oddly, despite the parameter being a datetime, I found I still had to cast it as a date.
FormatDateTime was introduced in Vs 2008. I’m not 100% sure why this didn’t work.