Copied to clipboard

Flag this post as spam?

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


  • Sergei 6 posts 76 karma points
    May 27, 2022 @ 14:26
    Sergei
    0

    IContentBase.SetValue problem with DateTime

    Hi

    I got unexpected result with the following code (on some PC):

    var member = _memberService.GetByKey(identityMember.Key);
    var company = _companyService.GetCompanyByPolicyNumber(model.PolicyNumber.Trim());                      
    member.SetValue("validUntil", company.ValidUntil);
    _memberService.Save(member);
    

    where company.ValidUntil is DateTime. Saved result is one century ealiyer (27/05/1930 instead of 27/05/2030 ). How it could be?

    Thanks in advance!

  • 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