Considering the following example which uses date parsing with date-fns:
https://codesandbox.io/s/50l9o3mljn
Initially, dates are rendered correctly:

However, after selecting a day the year is wrong:

UPDATE: looks like I need to use yyyy instead of YYYY.