Java Time's week-of-week-based-year pattern parsing with DateTimeFormatter

后端 未结 1 1081
渐次进展
渐次进展 2020-12-19 17:46

I need to output the current date in the format week-based-year-week-of-week-based-year, i.e. using the ISO week date where the week always starts

相关标签:
1条回答
  • 2020-12-19 18:01

    The documentation of DateTimeFormatterBuilder specifies that "Y" appends the localized week-based year. Thus, the meaning of the week-based year and week fields will depend on the locale set in the formatter.

    0 讨论(0)
提交回复
热议问题