Skip to content

Commit 31ddef1

Browse files
committed
added LocalDateTime.java class
1 parent b5e55f5 commit 31ddef1

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)