fork(1) download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4. import java.text.*;
  5.  
  6. class Ideone {
  7. public static void main (String[] args) throws java.lang.Exception {
  8. System.out.println(new SimpleDateFormat("dd-MM-yyyy HH:mm:ss").format(Calendar.getInstance().getTime()));
  9. }
  10. }
Success #stdin #stdout 0.1s 381888KB
stdin
Standard input is empty
stdout
03-02-2015 13:05:33