StrataFrame Forum

ListView Date Format

http://forum.strataframe.net/Topic14366.aspx

By Bill Cunnien - 2/13/2008

I am sure that I am missing something simple, but how do I format a date field to display the shortdatestring only in a ListView column?  What shows up now, is the date plus the time.  I've tried everything that I can think of to fix it, but nothing is working.  What is that one thing that I have not tried, yet?

Thanks,
Bill

By Trent L. Taylor - 2/13/2008

I am sure that I am missing something simple, but how do I format a date field to display the shortdatestring only in a ListView column?

You can just use standard string formatting.  You can actually supply additional formatting for virtually any data type.  You can learn more in the .NET help by looking up the String.Format command.  But if you want the date to show up like, "01/01/2008" then you would do this:

{0:MM/dd/yyyy}
By Bill Cunnien - 2/13/2008

Ahhh, within the list view population settings window!  Doh!

Sooooo simple.  Yup...that's why I missed it.

Thanks,
Bill

By Trent L. Taylor - 2/13/2008

No problem Smile