Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WPF Formatting dates in textbox?
Message
From
05/06/2010 10:41:35
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01465318
Message ID:
01467495
Views:
62
>>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...
Previous
Reply
Map
View

Click here to load this message in the networking platform