StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



ListView Date FormatExpand / Collapse
Author
Message
Posted 02/13/2008 1:39:29 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 3:04:50 PM
Posts: 367, Visits: 1,315
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

Post #14366
Posted 02/13/2008 1:43:16 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:43:51 PM
Posts: 4,241, Visits: 4,285
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}
Post #14369
Posted 02/13/2008 2:15:33 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 3:04:50 PM
Posts: 367, Visits: 1,315
Ahhh, within the list view population settings window!  Doh!

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

Thanks,
Bill

Post #14373
Posted 02/13/2008 2:17:32 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 2:43:51 PM
Posts: 4,241, Visits: 4,285
No problem
Post #14374
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:08pm

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.