Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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:
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
is working on a reply...