Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
All-Star
27330 Points
5459 Posts
MVP
Sep 23, 2011 08:22 PM|LINK
You will need to do this in the OnDataBinding event of the field template and use the FiledValue property
Literal1.Text = ((DateTime)FieldValue).ToString("d");
Or you can do that using the [DataTypeAttabute on each DataTime field in the metadata.
sjnaughton
All-Star
27330 Points
5459 Posts
MVP
Re: Change the date format displayed by the DateTime Field Templates
Sep 23, 2011 08:22 PM|LINK
You will need to do this in the OnDataBinding event of the field template and use the FiledValue property
Literal1.Text = ((DateTime)FieldValue).ToString("d");
Or you can do that using the [DataTypeAttabute on each DataTime field in the metadata.
Always seeking an elegant solution.