Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Java Date and Time

import java.time.LocalDate; // import the LocalDate class

public class Main {
  public static void main(String[] args) {
    LocalDate myObj = LocalDate.now(); // Create a date object
    System.out.println(myObj); // Display the current date
  }
}
Source by compiler.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #Java #Date #Time
ADD COMMENT
Topic
Name
8+3 =