Created
August 19, 2017 22:33
-
-
Save linuxsoares/f9f40f9ff7be3bca03cb65ddbdccbd9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Date; | |
import java.util.Calendar; | |
import java.util.GregorianCalendar; | |
import java.text.SimpleDateFormat; | |
public class Example{ | |
public static void main(String args[]){ | |
SimpleDateFormat sdf = new SimpleDateFormat("dd/M/yyyy"); | |
String date = sdf.format(new Date()); | |
System.out.println(date); | |
System.out.println("JVM VERSION: " + System.getProperty("java.vm.version")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment