Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display Date Without Time!
Message
 
À
17/06/2003 10:13:27
Mindy Shingara
Central Susquehanna Intermediate Unit
Lewisburg, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00800776
Message ID:
00800820
Vues:
21
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform