Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get month from int java

public String getMonthName(int month) {
  if (month <= 0 || month > 12) {
    return null;
  }
  return Month.of(month).getDisplayName(TextStyle.FULL, new Locale("ar"));
}
 
PREVIOUS NEXT
Tagged: #month #int #java
ADD COMMENT
Topic
Name
9+9 =