I know how to format a date in an XSLT file, but how in a (.master) template? When I choose "Insert Page Field," the only date-related option I see is "Format as date," but that automatically formats it as January 1, 2010. Can I specify in my <umbraco:item> tag the format I want?
Formatting dates in Templates
Hi,
I know how to format a date in an XSLT file, but how in a (.master) template? When I choose "Insert Page Field," the only date-related option I see is "Format as date," but that automatically formats it as January 1, 2010. Can I specify in my <umbraco:item> tag the format I want?
Thanks in advance,
Garrett
Inline xslt is probably your best bet. Good example here.
You could use
etc. inside your umbraco:item tag
untested, but should work
Dan
AH YES! I keep forgetting about the xslt="" attribute. Thanks as always, @dandrayne.
is working on a reply...