Java tutorial
import java.time.Month; import java.time.YearMonth; import java.time.temporal.Temporal; public class Main { public static void main(String[] args) { YearMonth y = YearMonth.now(); Temporal s = y.adjustInto(YearMonth.of(1990, Month.JANUARY)); System.out.println(s); } }