Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WPF Formatting dates in textbox?
Message
De
05/06/2010 10:41:35
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01465318
Message ID:
01467495
Vues:
60
>>Hi,
>>
>>I'm working on a WPF application. I have a datetime field from a SQL database and I'm only interested in showing the date portion of that field to the user. Can't seem to figure it out. I've looked around in the MM.NET help file and also googling on the Internet for an answer, but coming up emtpy.
>>
>>I'm using VS 2010 and MM.NET 4.0. Isn't there a simple format or mask property for a WPF textbox that I can use to manage a date format?
>>
>>Guy
>
>Although I have not yet looked, I would imagine that there is a WPF equivalent to the mmMaskedTextBox control. That does include an option to show only the date portion of a DateTime value.

TAke a look at value converters, they are tailor made for this kind of stuff...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform