I'm just trying to get it to return an AM/PM string. Even using the default format from the ToolTip help generates a compiler error.
Took me a while to find the documentation but I thought that would be easy after that. Tried a few suggestions from the documentation such as "h:mm a" "hh:mm:ss a" but nothing works.
Can't find any pointers on this forum either. I know it must be a common issue as the US does not use 24 hour time much.
But the main problem is your code, its all wrong, TimeFormat its a property, not a function, and even the intellisense is telling you that you have errors.