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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -