John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Catégorie:
The Mere Mortals .NET Framework
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement