Mark This Response as Answer -- Chandu http://www.dotnetfunda.com/images/dnfmvp.gif
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture){ var item = (DateTime)value; if (item != null) { return item.ToString("MMMyyyy"); } return null;}
raj
string strFormat = txtFormat.Text;public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture){ var item = (DateTime)value; if (item != null and strFormat != null ) { return item.ToString(strFormat); } return null;}
If it helps/directs you towards the solution,Mark This Response as Answer link -- Rajesh
Login to post response