update format control %04d instead of %4d for year.