Additional information: Invalid cast from 'Int32' to 'DateTime'.
TimeSpan ts = retdt - reqdt; int days = ts.Days; DateTime cde = Convert.ToDateTime(days); if (cde <=before) { result = Convert.ToDouble(txtamount.Text); double mult = result * 5d; txtresult.Text = mult.ToString();
Quote:How to convert int to datetime in C# windows form
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)