I actually need the current month. So I was sing the following code
But the problem is that when I print the month, it gives me 5 instead of 6 which is the current month.
Any help will be greatly appreciated. When I print the whole date, it prints the right date
Date todays_date = new Date();
String this_month = new Integer(todays_date.getMonth()).toString();