MorganFR
0
Q:

java get month

import java.time.ZoneId;
import java.util.Date;

new Date().toInstant().atZone(ZoneId.systemDefault()).toLocalDate().getMonthValue();
1

New to Communities?

Join the community