Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.time.LocalDate;
import java.time.LocalDateTime;

public class Main {

    public static void main(String[] args) {
        System.out.println(getDatePart(LocalDateTime.now()));
    }

    public static LocalDate getDatePart(final LocalDateTime dateTime) {
        return dateTime.toLocalDate();
    }
}