I'm trying to move a "DateTime" data item from a DB to an "EditText" item in a form and I keep getting the error mentioned above. Below is the C# code. What am I doing wrong?
oItem = oForm.Items.Item("9");
oEdit = ((EditText)(oItem.Specific));
sString = vData.dPEDate.ToString();
oDate = DateTime.Parse(sString);
oEdit.Value = oDate.ToString();
This should be easy but I haven't been able to get it to work.