Menu

#329 AS400Date with YM fails on year 2000

Record-Level Access
open
wanghuiq
None
5
2014-07-22
2011-05-29
unxi53
No

When encoding the date 2000-01-12 with the AS400Date class using format 13 (YM) the result in EBCDIC is 00/01 which is correct from my point of view.

When decoding 00/01 with the same AS400Date object I get the date 2100-01-01 where the year is incorrect. I think it should be 2000-01-01.

All the best
Peer

Discussion

  • unxi53

    unxi53 - 2011-05-29

    Same applies for format 0 (MDY) and 2000-01-01

     
  • John Eberhard

    John Eberhard - 2012-06-11
    • assigned_to: nobody --> piguangming
     
  • John Eberhard

    John Eberhard - 2014-07-22
    • assigned_to: GuangMing Pi --> wanghuiq
     

Log in to post a comment.

MongoDB Logo MongoDB