Customer Portal

long2date not working?

Comments 1

  • Avatar
    pintail
    0
    Comment actions Permalink
    I figured it out....was missing a 1000 multiplier to the long date that was being provided to me. Or you can add that as the solution and post I guess in case someone runs into the same issue....

    using this code

    output = long2date(str2long($in.0.time)* 1000);

    instead of this code
    output = long2date(str2long($in.0.time));

    fixed the issue and returned the correct date

Please sign in to leave a comment.