Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SimpleDateFormat dateFormat = new SimpleDateFormat("MM");
- String monthNumber = dateFormat.format(data_ano.getTime());
- String[] monthNames = {"", "JANEIRO", "FEVEREIRO", "MARÇO", "ABRIL", "MAIO", "JUNHO", "JULHO", "AGOSTO", "SETEMBRO", "OUTUBRO", "NOVEMBRO", "DEZEMBRO"};
- int monthIndex = Integer.parseInt(monthNumber);
- String monthName = monthNames[monthIndex];
- mes.setText(monthName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement