Skip to content
Snippets Groups Projects

Settings Module

Merged Lukas Domeisen requested to merge 180-settings-semester-create-edit into master
19 files
+ 609
4
Compare changes
  • Side-by-side
  • Inline
Files
19
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StudiApp.Services.Converters;
public class DateToStringConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
var dateValue = (DateTime) value;
return dateValue.ToString("d", culture);
}
// no implementation of ConvertBack because this converter is only used to display data
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}