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
Post a Comment