Copied to clipboard

Flag this post as spam?

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


  • digaumprosound 3 posts 73 karma points
    Feb 24, 2016 @ 19:54
    digaumprosound
    0

    Help Error for Umbraco 7 "' string ' does not contain a definition for ' StarDate '"

    Did the call using @CurrentPage. DateRange. StartDate, I returned the following error:

    Microsoft.CSharp. RuntimeBinder. RuntimeBinderException: ' string ' does not contain a definition for ' StarDate '

    If I put only @CurrentPage. DateRange ai returns the date e.g. 2016-02-24T10:02:41,2016-02-25T10:02:41.

    Have any solution for this problem?

    Thank you

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Feb 24, 2016 @ 20:04
    Dan Diplo
    0

    Haven't worked on this for a while, so not tested on newer Umbraco versions. Have you tried the "strongly typed" method of getting the StartDate ie.

    var dateRange = Model.Content.GetPropertyValue<Diplo.DateRangePicker.DateRange>("dateRange");
    

    Your date is @dateRange.StartDate

    ?

  • 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