Table of Contents

Class DateTimeToStringValueConverter

Namespace
MADE.Data.Converters
Assembly
MADE.Data.Converters.dll

Defines a value converter from DateTime to string with an optional format string.

public class DateTimeToStringValueConverter : IValueConverter<DateTime, string>
Inheritance
DateTimeToStringValueConverter
Implements
Inherited Members
Extension Methods

Methods

Convert(DateTime, object?)

Converts the value to the string type.

public string Convert(DateTime value, object? parameter = null)

Parameters

value DateTime

The value to convert.

parameter object

The optional parameter used to help with conversion.

Returns

string

The converted string object.

ConvertBack(string, object?)

Converts the value back to the DateTime type.

public DateTime ConvertBack(string value, object? parameter = null)

Parameters

value string

The value to convert.

parameter object

The optional parameter used to help with conversion.

Returns

DateTime

The converted DateTime object.