I am using this to return the date/time entered by a user in a page layout. I want to only show the date. I need to keep the time part as this is used in a query on another page. I have seen suggestions in adding Dateonly:"True" but this doesn't work. Can I use CSS or something else to format / hide the time

<span id="publishdate">
        <br><i>Article Date:</i></br>   <SharePointWebControls:DateTimeField  FieldName="ea266b0f-51ec-4fd3-bdcf-0c010a4caea7" runat="server" ></SharePointWebControls:DateTimeField>
  • Have you tried editing the field property and setting it to only date? – Amal Hashim Jul 22 '16 at 15:54
  • I can't edit it to date only as I use the time part to sort by. – Mike Blair Jul 25 '16 at 7:45

Not sure but this might help. Change dates view.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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