Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
DisplayFormat for dates
posted

Hi,

I'm working on a WinGrid and I added summaries to date/time columns where I display minimum and maximum values (i.e., minimum and maximum dates).

The summary works fine, however I want to display dates in "yyyy-MM-dd" format. So far, I had no problem formatting number values, but date formats just don't work for me. I unsuccesfully tried "yyyy-MM-dd" and a dozen different formats.

MyGrid.Bands(0).Summaries("myKey").DisplayFormat = ???

How can I work it around?

Parents
No Data
Reply
  • 60
    Offline posted

    I tried formats "Mín: {0:yyyy-MM-dd}" and "Máx: {0:yyyy-MM-dd}" and they worked fine for me.

Children
No Data