Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 1,561
Registered: ‎07-14-2008
My Device: Z10
My Carrier: Fido
Accepted Solution

Calendar.WEEK_OF_YEAR help

how do i get the week in the year?

it appears the Calendar class is missing

 

Calendar.WEEK_OF_YEAR

Calendar.WEEK_OF_MONTH

Highlighted
BlackBerry Development Advisor
Posts: 15,264
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Calendar.WEEK_OF_YEAR help

You can use the DateTimeUtilities.getWeekOfYear method to get the week of the year.  There is no method to get the week of the month.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker