You wont be getting this error (
String was not recognized as a valid DateTime
.) for the code provided by you..
lbl_DateFrom.Text = carIndv.dateFrom.ToString("dd/MMM/yyyy");
check this post for the quoted error
String was not recognized as a valid DateTime.[
^]
This error you will get, when you are trying to cast
invalid string
object to
DateTime
but you are doing the reverse, hopefully error shouldn't raise...