skip to Main Content

Android Studio – How can I get present months?

I tried Calendar calendar= Calendar.getInstance(); System.out.println("use with command get time "calendar.getTime()" : "+calendar.getTime()); System.out.println("use with command get month "calendar.get(Calendar.MONTH)": "+calendar.get(Calendar.MONTH)); but I can't get the right month. this is my output How can I get the current month? Thanks for…

VIEW QUESTION
Back To Top
Search