ClassDateOnlyToDateTimeConverter
Class
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
cs-api-definition
public class DateOnlyToDateTimeConverter : IValueConverter
Inheritance: objectDateOnlyToDateTimeConverter
Implements:
Constructors
DateOnlyToDateTimeConverter()
Declaration
cs-api-definition
public DateOnlyToDateTimeConverter()
Methods
Convert(object, Type, object, CultureInfo)
Declaration
cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The DateOnly value to convert.
targetType
The type to convert to.
parameter
Additional parameter for the conversion.
culture
The culture to use for the conversion.
Returns
A DateTime with the date from the DateOnly and minimum time, or the original value if not a DateOnly.
ConvertBack(object, Type, object, CultureInfo)
Declaration
cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The DateTime value to convert back.
targetType
The type to convert back to.
parameter
Additional parameter for the conversion.
culture
The culture to use for the conversion.
Returns
A DateOnly with the date part from the DateTime, or the original value if not a DateTime.