Copied to clipboard

Flag this post as spam?

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


  • Jesper Lysgaard 16 posts 76 karma points
    Oct 25, 2012 @ 12:36
    Jesper Lysgaard
    0

    v 4.8.1 String was not recognized as a valid DateTime

    Hi,

    I have a usercontrol that shows a list of articles. I use a repeater and to show a date I use following code:

     <%#  DateTime.Parse((Container.DataItem as umbraco.NodeFactory.Node).GetProperty("dato").Value).ToString("dd.MM.yyyy") %>

    That line gives me a "String was not recognized as a valid DateTime". The property is a "DatePicker".

    The fun thing is that the exact same line works fine in another umbraco solution running v 4.7.1.  

    Has anybody perhaps experienced something like this.


    /Jesper

  • 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