0 Replies Latest reply on Jan 5, 2014 6:00 PM by user8696578

    getting weeknumbers in desired order

    user8696578

      Hi Java Experts,

      Jdeveloper version 11.1.1.7.0

       

      I have a webservice which returns weeknumbers in a ArrayList. It has values like below year with weeknumber

      201352

      201351

      201350

      201349

      201348

      201347

      201346

       

       

       

      I use to send a  date (java.util.date ex entered date is 09.12.2013 which is week 50)

      So I should show the user as below

       

      currentweekno+2 =52 weekno

      currentweek -4 =48 weekno

       

      So in UI I should show values as below

       

      201352

      201351

      201350

      201349

      201348

      201347

      201346




      But problem is now in case I entered 01.01.2014


      The week number +2=weekno 3

      weeknumber-4=here the calculation goes wrong. It should be showing as below


      201303

      201302

      201301

      201352

      201351

      201350

      201349

      \\thnks

      aimes]h