MonthDay now(ZoneId) method in Java with Examples Last Updated : 12 May, 2020 Comments Improve Suggest changes Like Article Like Report The now(ZoneId zone) method of the MonthDay class in Java is used to get the current month-day from the system clock in the specified time-zone. Syntax: public static MonthDay now(ZoneId zone) Parameters: This method accepts ZoneId as parameter. Return value: This method returns the current month-day using the system clock. Below programs illustrate the now(ZoneId zone) method of MonthDay in Java: Program 1: Java // Java program to demonstrate // MonthDay.now(ZoneId zone) method import java.time.*; import java.time.temporal.*; public class GFG { public static void main(String[] args) { // apply now(ZoneId zone) method // of MonthDay class MonthDay result = MonthDay.now( ZoneId.systemDefault()); // print both month and day System.out.println("MonthDay: " + result); } } Output: MonthDay: --05-09 Program 2: Java // Java program to demonstrate // MonthDay.now(ZoneId zone) method import java.time.*; import java.time.temporal.*; public class GFG { public static void main(String[] args) { // apply now(ZoneId zone) method // of MonthDay class MonthDay result = MonthDay.now( ZoneId.systemDefault()); // print only month System.out.println("Month: " + result.getMonth()); } } Output: Month: MAY References: https://docs.oracle.com/javase/10/docs/api/java/time/MonthDay.html#now(java.time.ZoneId) Comment More infoAdvertise with us Next Article MinguoDate now(ZoneId) method in Java with Examples P pp_pankaj Follow Improve Article Tags : Java Java-Functions Java-MonthDay Practice Tags : Java Similar Reads MonthDay now() method in Java with Examples The now() method of the MonthDay class in Java is used to get the current month-day from the system clock in the default time-zone. Syntax: public static MonthDay now() Parameters: This method does not accept any parameter. Return value: This method returns the current month-day using the system clo 1 min read MinguoDate now(ZoneId) method in Java with Examples The now() method of java.time.chrono.MinguoDate class is used to get the current Minguo date according to the Minguo calendar system in the specified zone. Syntax: public static MinguoDate now(ZoneId zone) Parameter: This method takes the object of zone id on the basis of which Minguo date is going 2 min read MonthDay now(Clock) method in Java with Examples The now(Clock clock) method of the MonthDay class in Java is used to get the current month-day from the specified clock. Syntax: public static MonthDay now(Clock clock) Parameters: This method accepts clock as parameter which represents the clock to use. Return value: This method returns the current 1 min read LocalTime now(ZoneId) method in Java with Examples The now(ZoneId zone) method of the LocalTime class in Java is used to get the current time from the system clock in the specified time-zone. Syntax: public static LocalTime now(ZoneId zone) Parameters: This method accepts ZoneId as parameter. Return value: This method returns the current time using 1 min read ZonedDateTime now() Method in Java with Examples In ZonedDateTime class, there are three types of now() method depending upon the parameters passed to it. now() now() method of a ZonedDateTime class used to obtain the current date-time from the system clock in the default time-zone.This method will return ZonedDateTime based on system clock with d 3 min read ZonedDateTime now() Method in Java with Examples In ZonedDateTime class, there are three types of now() method depending upon the parameters passed to it. now() now() method of a ZonedDateTime class used to obtain the current date-time from the system clock in the default time-zone.This method will return ZonedDateTime based on system clock with d 3 min read Like