How to specify which century a date should be parsed in Joda-Time

后端 未结 1 952
谎友^
谎友^ 2021-01-24 18:32

I have some HR records whose dates are formatted as dd/MM/yy, and I am normalizing them to dd-MM-yyyy using Joda-Time. So for example, the following re

相关标签:
1条回答
  • 2021-01-24 19:30

    If I understand the question correctly, it is referred as "Pivot Year": http://joda-time.sourceforge.net/apidocs/org/joda/time/format/DateTimeFormatter.html#withPivotYear%28int%29

    The CenturyOfEra is just our current century - XXI, the one which so many sci-fi authors dreamed about few decades back.

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