Adf.Web.Binding.DateTimeBinder.GetDate C# (CSharp) Method

GetDate() private static method

Converts the specified value to a Nullable<DateTime> value and returns the output.
private static GetDate ( object value ) : DateTime?
value object The value to convert.
return DateTime?
        private static DateTime? GetDate(object value)
        {
            if (value is DateTime) return (DateTime?)value;
            if (value is DateTime?) return (DateTime?)value;

            return null;
        }
DateTimeBinder