natural born programmer

Blog Archive

  • ►  2020 (4)
    • ►  February (4)
  • ►  2019 (1)
    • ►  June (1)
  • ►  2015 (15)
    • ►  March (2)
    • ►  February (2)
    • ►  January (11)
  • ►  2012 (4)
    • ►  July (2)
    • ►  February (2)
  • ▼  2011 (11)
    • ►  December (1)
    • ►  October (2)
    • ►  September (1)
    • ▼  July (7)
      • opening xaml with Source Code (Text) Editor
      • send email using smtp
      • format number with 2 decimal places in XAML presen...
      • printing in silverlight 4
      • asp .net required field validation on dropdown list
      • how to call a messagebox in asp .net code-behind
      • removing time in datetime XAML presentation
  • ►  2010 (2)
    • ►  March (2)
  • ►  2009 (3)
    • ►  December (3)
  • ►  2008 (3)
    • ►  November (1)
    • ►  August (1)
    • ►  June (1)

About Me

My photo
PD
View my complete profile

Thursday, July 14, 2011

removing time in datetime XAML presentation

In Silverlight XAML presentation, you can use the following code to remove time in a datetime binding:


<TextBlock Text="{Binding EffectivityDate, StringFormat='MM/dd/yyyy', Mode=TwoWay}"/>

Smile! Coding is like playing!
Posted by PD at 6:18 AM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)