complete ranking page
This commit is contained in:
1 parent
b5c531d128
commit
abffc0627e
5 files changed
+213
-53
No files matched your search
@@ -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