AppointmentMappingInfo.StartConverter Property
Gets or sets a value converter for the Appointment.Start property.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v19.2.Core.dll
Declaration
Property Value
Type | Description |
---|---|
ISchedulerMappingConverter | An object that implements the ISchedulerMappingConverter interface to translate the data between the property and the data source field. |
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/mapping-converters-an-example-of-use-t497864
class MappingConverterStart : ISchedulerMappingConverter {
public object Convert(object obj, Type targetType, object parameter) {
return DateTime.ParseExact(obj.ToString(), "s", System.Globalization.DateTimeFormatInfo.InvariantInfo);
}
public object ConvertBack(object obj, Type targetType, object parameter) {
return ((DateTime)obj).ToString("s");
}
}
See Also