The java.time package of Java provides API’s for dates, times, instances and durations.
package info.goyun.example;
import java.time.LocalDate;
public class StringBuilderDemo {
public static void main(String[] args) {
//Getting the current date value
LocalDate currentdate;
currentdate = LocalDate.now();
System.out.print(currentdate.getDayOfMonth());
}
}
import java.time.LocalDate;
public class StringBuilderDemo {
public static void main(String[] args) {
//Getting the current date value
LocalDate currentdate;
currentdate = LocalDate.now();
System.out.print(currentdate.getDayOfMonth());
}
}
Comments
Post a Comment