Skip to content

Instantly share code, notes, and snippets.

@linuxsoares
Created August 19, 2017 22:33
Show Gist options
  • Save linuxsoares/f9f40f9ff7be3bca03cb65ddbdccbd9d to your computer and use it in GitHub Desktop.
Save linuxsoares/f9f40f9ff7be3bca03cb65ddbdccbd9d to your computer and use it in GitHub Desktop.
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