29 lines
771 B
C#
29 lines
771 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Globalization;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Data;
|
|
|
|
namespace ListViewEditSample
|
|
{
|
|
internal class DateConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
if (!(value is DateTime))
|
|
return "";
|
|
|
|
DateTime date = (DateTime)value;
|
|
|
|
return date.ToString("yyyy년 MM월 dd일 HH시 mm분 ss초 fff밀리세컨드");
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
}
|