Java Date Time - LocalDateTime MIN example








LocalDateTime MIN defines the minimum supported LocalDateTime, '-999999999-01-01T00:00:00'.

This is the local date-time of midnight at the start of the minimum date.

Syntax

MIN has the following syntax.

public static final LocalDateTime MIN

Example

The following example shows how to use MIN.

import java.time.LocalDateTime;

public class Main {
  public static void main(String[] args) {
    LocalDateTime a = LocalDateTime.MIN;
    
    System.out.println(a);
  }
}

The code above generates the following result.