Update DateFormatConverter

This commit is contained in:
2026-04-08 22:18:12 +09:00
parent 4d89e49c96
commit 23e8b2533a
+9 -1
View File
@@ -22,6 +22,14 @@ public class DateFormatConverter : IMultiValueConverter
{
return dateOnly.ToString(dateFormat);
}
return 0.0;
if (values.Count >= 2 && values[0] is DateTime dateTime && values[1] is string format3)
{
return dateTime.ToString(format3);
}
if (values.Count >= 2 && values[0] is string format4 && values[1] is DateTime dateTime2)
{
return dateTime2.ToString(format4);
}
return "";
}
}