Hi ,
The following code throws Invalid Type Cast Exception because, I am not able to convert Decimal data into Date time data.
Please send me any possible way to do this at the earliest.
DateTime et = new DateTime();
DateTime st = new DateTime();
st = Convert.ToDateTime(nstarthrs.Value);
et = Convert.ToDateTime(nendhrs.Value);
Where nstarthrs is a numeric and nendhrs are Updown Conrol holds Decimal values.
By
RSugumar