We have data extender which will provide date when certain item is locked. Data extender adds column to Checked-out Items page. That is done by adding following XML block in ListCheckedOutItems.xml

<list:column id="LockedSince" type="data" title="{Resources: Tridion.Web.UI.Strings, LockedSince}" selector="@LockedSince"  enablefiltering="true" columnfilter="daterange"/>

This is part of code reads items with CoreService data and returns LockData value

if (coreServiceClient != null && coreServiceClient.Read(tcmUri, new ReadOptions() { LoadFlags = LoadFlags.Expanded }) is RepositoryLocalObjectData repositoryLocalObjectData && repositoryLocalObjectData.LockInfo.LockDate.HasValue)
    lockedSinceValue = repositoryLocalObjectData.LockInfo.LockDate.Value;

return lockedSinceValue;

Problem is format of Date:

enter image description here

Is there any other way than converting DateTime value into string with certain format?

1 Answer 1


Try using this in ListCheckedOutItems.xml

<list:column id="LockedSince" type="data" title="{Resources: Tridion.Web.UI.Editors.CME.Strings, LockedSince}" selector="@LockedSince" translate="Tridion.Utils.Localization.TranslateDate"  enablefiltering="true" columnfilter="daterange" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.