View Problem

Display the current date and time

Create a Date object representing the current date and time. Print it out.
If you can also do this without creating a Date object you can show that too.
DiskEdit
java
import java.util.Date;

public class SolutionXX {
public static void main(String[] args) {
Date now = new Date();
System.out.println(now.toString());
}
}
DiskEdit
csharp
// Creating a variable first:
DateTime now = DateTime.Now;
Console.WriteLine(now);

// Without creating a variable:
Console.WriteLine(DateTime.Now);
DiskEdit
clojure
(import 'java.util.Date)

(println (str (Date.)))

Submit a new solution for java, csharp, or clojure
There are 16 other solutions in additional languages (cpp, erlang, fantom, fsharp ...)