I want a specific format in IValueConverter and return a string. Like "MMMyyyy" How can I get this?
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
var item = (DateTime)value;
if (item != null)
{
return item.ToString();
}
return null;
}
Please try below