Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display Date Without Time!
Message
 
To
17/06/2003 10:13:27
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00800776
Message ID:
00800820
Views:
20
This message has been marked as the solution to the initial question of the thread.
Hi Mindy,

I'm assuming that you are referring to WinForm datagrids. To format the datetime to be only the date portion, just set the Format property of the DataGridColumnStyle to d.

If you are referring to WebForm datagrids, then set Text formatting expression of the bound column to {0:d}.

>Can I display a date in a grid without the time without having to format my sql statement to do so? Is there a property or an option to remove the time stamp?
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform