Customer Portal

Different results using str2date

Comments 1

  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi hewills,

    The reason the output is a different date has to do with the capital Y. In Java, the capital Y stands for week year, which is different for y (Year). To resolve the issue just minimize the Y on the second str2date and it will output the correct date value.

Please sign in to leave a comment.