John Baird
Coatesville, Pennsylvania, United States
General information
Category:
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...
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only