Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want to create a date input box. When you select a date, it puts it in the format dd/mm/yyyy using the following Custom Field.

  <Field ID="{3a521b04-fca1-4707-9134-fa4acd1456d8}" Name="RegistrationDate"
       DisplayName="Registration Date"
       Type="DateTime"
       Format="DateTime"
       Hidden="FALSE"
       Required="TRUE"/>

I want the format to be for example: "Tuesday 6, 2011" Is there a way I can do it directly from here or do i have to use javascript on the client side.

share|improve this question
add comment

2 Answers 2

There are just two types of date format available in fields DateTime and DateOnly.

However there is a little workaround available: Create additional calculated field and in formula use:

=TEXT([Registration Date],"dddd d, yyyy")

This new will render your Registration Date field as you required.

share|improve this answer
add comment

There's a Data View format functionality that can be seen here: SharePoint Data View Web Part Extension Functions in the ddwrt Namespace

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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