locked
Partial class Data Time Formating doen't work RRS feed

  • Question

  • User116907111 posted

    Hello,

    I made a partial class for my tables to format the values correctly. There is a Problem with DateTime format. I want only the Date without the Time.

    The fields show that: 01.01.1999 00:00:00 / I want: 01.01.1999

    This is my code:

    [DisplayName("Begin")]
    [
    DisplayFormat(DataFormatString = "{0:dd.MM.yyyy}")]
    public object JobBegin { get; set; }

     Could someone explain what is wrong`? The DisplayName works!

    Wednesday, September 10, 2008 9:37 AM

Answers

  • User116907111 posted

     The Problem was that I used Bound Fields and not Dynamic. (After correction the Problem, doesn't exist any more!)

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 10, 2008 10:21 AM