문제

Documentation is here

In the Umbraco master template, I have this:

<div><umbraco:Item runat="server" Field="date" formatAsDateWithTime="true" formatAsDateWithTimeSeperator="sep"></umbraco:Item></div>

which takes the field of the content page with the alias of date and return it as a string formatted as a date with time, with sep being the separator.

It should insert sep between the date and the time. But it is coming back as:

Sunday, April 13, 20142:18 PM

It should be:

Sunday, April 13, 2014sep2:18 PM

Why is it not working?

도움이 되었습니까?

해결책

It's a typo in the documentation, separator is spelt incorrectly. The correct name is

formatAsDateWithTimeSeparator
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top