mydate3 = (mydate - mydate2).ToString();
mydate3
is a
DateTime
and you are trying to assign a
String
to it.
if (x("Selected") + 1 == x("correct")
You might need to explicitly convert
x("Selected")
and
x("correct")
to
int
s. They are now
object
s.
if (Convert.ToInt32(x("Selected")) + 1 == Convert.ToInt32(x("correct"))