Is there any DateTime library which supports quarter of the year and week of the year Java? -


i using jodatime datetime class java project. not have support quarter of year , week of year.

is there java library can used purpose?

in java 8 datetimeformatter supports quarters using q format , week of year using w:

localdate date = localdate.now(); datetimeformatter formatter = datetimeformatter.ofpattern("qqq w"); string text = date.format(formatter); 

results in third quarter , 31st week of year todays date (july 25th):

"q3 31" 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -