I am trying to format a textblock which is bound to a TimeSpan property. It works if the property is of type DateTime but it fails if it is a
TimeSpan
DateTime
The format string is intended to work on a DateTime, not a TimeSpan.
You could change your code to work with DateTime.Now instead. Your xaml is fine:
DateTime.Now
Update
And from .Net 4 format a TimeSpan as follows: