Scheduler for UWP | ComponentOne
C1.Xaml.Schedule Namespace / DateTimeToStringConverter Class

In This Topic
    DateTimeToStringConverter Class
    In This Topic
    Represents a Binding converter that converts a System.DateTime to one of its string representations.
    Object Model
    DateTimeToStringConverter Class
    Public Class DateTimeToStringConverter 
       Implements Windows.UI.Xaml.Data.IValueConverter 
    public class DateTimeToStringConverter : Windows.UI.Xaml.Data.IValueConverter  
    DateTimeToStringConverter is a two-way converter. The source value must be the DateTime, and a target value is a string that represents the DateTime according to a format specifier defined in a converter parameter. The format specifier definition rules are the same as used in the System.DateTime.ToString(format) method. A back conversion is performed via the DateTime.DateTime.TryParseExact method if converter parameter is specified; otherwise, the DateTime.DateTime.TryParse method is used.
    Inheritance Hierarchy


    See Also