complete ranking page
This commit is contained in:
@ -111,10 +111,16 @@ namespace Billing.UI
|
||||
|
||||
public class TimeConverter : IValueConverter
|
||||
{
|
||||
public bool IncludeDate { get; set; }
|
||||
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
if (value is DateTime time)
|
||||
{
|
||||
if (IncludeDate)
|
||||
{
|
||||
return time.ToString("MM-dd HH:mm");
|
||||
}
|
||||
return time.ToString("HH:mm");
|
||||
}
|
||||
return string.Empty;
|
||||
|
Reference in New Issue
Block a user