New course! Every coder should learn Generative AI!
Try a free lesson0
How get month number from month name using Java code?
2 Answers
+ 6
For current month you can use:
LocalDate today = LocalDate.now();
int month = today.getMonthValue();
+ 2
Thanks guys 🙏🙏🙏