Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Barry 99 posts 187 karma points
    Sep 13, 2009 @ 17:19
    Barry
    0

    String was not recognized as a valid DateTime

    I have a .NET user control that filters out data based on a date, this worked fine on my hosting but I wanted to develop extra things locally so packaged up everything and installed it locally. My hosting is US date settings, I have UK date settings but have tried changing this to US and I still get this error.

     

    The line of code that errors is:

    dv.RowFilter = "[Hide in Navigation] = 0 AND " + String.Format(System.Globalization.CultureInfo.InvariantCulture.DateTimeFormat, "[Date] > #{0}#", DateTime.Today.ToString());

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies