Posted on: 2/25/2014 4:46:32 AM | Views : 639

Hi,
I'm Trying to find out the difference between the two date.as it is working fine in the local system and but getting an Error like STRING IS NOT RECOGNIZED AS A VALID DATE FORMAT when the same code is uploaded to server.
BELOW IS THE CODE I'M USING
        DateTime issuedate = Convert.ToDateTime(txt_issuedate.Text);         DateTime duedate = Convert.ToDateTime(txt_duedate.Text);         TimeSpan result = duedate.Subtract(issuedate);         if (result.TotalDays > 7)         {             ScriptManager.RegisterStartupScript(this.Page, typeof(string), "alert", "alert('Books Cannot Be Issued More Than 7 Days');", true);         &nbs ...

Go to the complete details ...