title: Why Convert.ChangeType() not converting a date string (in dd/MM/yyyy format) into datetime type?
body: <p>Below is my code where I intend to populate entity data via reflection.</p>
  
  <pre><code>public static void SetEntityProperty(object entity, DevExpress.Web.ASPxFormLayout formLayoutControl)
  {
      if (formLayoutControl != null)
      {
         Type type = entity.GetType();
         System.Reflection.PropertyInfo[] properties = type.GetProperties();
         System.Data.DataTable dt = new System.Data.DataTable();
         foreach (System.Reflection.PropertyInfo pi in properties)
         {
            var layoutItem = formLayoutControl.FindItemByFieldName(pi.Name);
            if (layoutItem != null &amp;&amp; layoutItem.CssClass == "ro-item") continue;
  
            var control = formLayoutControl.FindNestedControlByFieldName(pi.Name);
            if (control != null &amp;&amp; control is DevExpress.Web.ASPxEdit)
            {
                var targetType = Data.IsNullableType(pi.PropertyType) ? Nullable.GetUnderlyingType(pi.PropertyType) : pi.PropertyType;
                try
                {
                   if ((control as DevExpress.Web.ASPxEdit).Value != null)
                   {
                      //here (control as DevExpress.Web.ASPxEdit).Value = "19/05/2015" and control is a read only text box
                      var value = Convert.ChangeType((control as DevExpress.Web.ASPxEdit).Value, targetType);
                      if (value != null &amp;&amp; value is System.String)
                      {
                          value = value.ToString().Trim();
                          (control as DevExpress.Web.ASPxEdit).Value = value;
                      }
                      pi.SetValue(entity, value, null);
                   }
                   else
                   {
                      pi.SetValue(entity, null, null);
                   }
                }
                catch (Exception ex)
                {
                   pi.SetValue(entity, value, null);
                }
           }
           else
                throw ex;
         }
      }
  }
  </code></pre>
  
  <p>What am I doing wrong here? I found few other questions related to <code>Convert.ChangeType</code> but all of there suggestions were already implemented into this code. I am using Visual Studio 2013 C#, DevExpress 14.2.6. Please help. Thanks.</p>