CMSDocumentValue FormattingString

Brad Chapman asked on November 17, 2014 01:11

Hi All

Trying to format the date properly using the "FormattingString" attribute in the "CMSDocumentValue" CMS tag using standard c# type string formatting.

<cms:CMSDocumentValue ID="NewsReleaseDate" AttributeName="NewsReleaseDate" runat="server" FormattingString="{0:dd/MM/yyyy}" />

This doesn't work obviously so looking for some help to see if this is even possible, how to do it, and if not, why not?

Cheers, Brad

Recent Answers


Joshua Adams answered on November 17, 2014 20:52

Can you just set it in the code behind?

0 votesVote for this answer Mark as a Correct answer

Brad Chapman answered on February 18, 2016 04:15

Dropped requirement as I'm hoping where possible to avoid deploying custom code solutions and use as much UI functionality as possible.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.