I need to change the display date format of all the dates in my Dynamic Data app. I'm trying to modify the DateTime field template to always return in short date format ("d"). I don't need globalization or anything sophisticated. Changing the
return Literal1 to return Literal1.ToString("d") gives an error"No overload for method 'ToString' takes 1 arguments".
Jim Foulkrod
Member
11 Points
28 Posts
Change the date format displayed by the DateTime Field Templates
Sep 23, 2011 06:03 PM|LINK
I need to change the display date format of all the dates in my Dynamic Data app. I'm trying to modify the DateTime field template to always return in short date format ("d"). I don't need globalization or anything sophisticated. Changing the return Literal1 to return Literal1.ToString("d") gives an error"No overload for method 'ToString' takes 1 arguments".
Thanks,
Jim