java - How to get month according to day of year -


I have input 34 meaning its third day February How to programmatically determine Java in and month name or month month value such as 0 to get from day to day In java it handles i searched in calendar class but no one found

  calendar cal = calendar.justinstance (); Cal.set (Calendar: DAY_OF_YEAR, 34); Println (cal.get (Calendar.MONTH));   

Back 1 (with 0 from the start of months).

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -