I'm binding fileinformation to a repeater and attempting to display the
'lastWriteTime' property as a formatted date.
This:
<%# DataBinder.Eval(Container.DataItem, "LastWriteTime" %>
Gives me the full date/time.
This:
<%# DataBinder.Eval(Container.DataItem, "{MM/DD/YYYY}" %>
Gives me a ' Overload resolution failed because no accessible 'ToString' can
be called without a narrowing conversion: '
Aha! It's not returning a dateTime value, but rather a string. Short of
parsing this string with regex or something, is there a way to get it to
return an actual dateTime value so I can use the format string on it?
-Darrel