We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5e55f5 commit 31ddef1Copy full SHA for 31ddef1
1 file changed
java8Tutorials/src/main/java/java8/time/LocalDateTime.java
@@ -0,0 +1,16 @@
1
+package java8.time;
2
+
3
+import java.time.LocalDate;
4
5
+public class LocalDateTime
6
+{
7
+ public static void main(String[] args)
8
+ {
9
+ LocalDate date=LocalDate.now();
10
+ System.out.println(date);
11
12
+ System.out.println(date.getYear());
13
+ System.out.println(date.getMonth());
14
+ System.out.println(date.getDayOfMonth());
15
+ }
16
+}
0 commit comments