S
SimonZ
Hi,
can someone explain me, when to use:
(DateTime)DataBinder.Eval(Container.DataItem, "dateField")
OR
Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "dateField"))
Sometimes (DateTime) works sometimes not, on the other hand
Convert.ToDateTime() always works.
The same problem is with (int16) and Convert.ToInt16
Thanks,S
can someone explain me, when to use:
(DateTime)DataBinder.Eval(Container.DataItem, "dateField")
OR
Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "dateField"))
Sometimes (DateTime) works sometimes not, on the other hand
Convert.ToDateTime() always works.
The same problem is with (int16) and Convert.ToInt16
Thanks,S