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
ruby
puts DateTime.now
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.)))
DiskEdit
fsharp
printfn "%A" System.DateTime.Now
ExpandDiskEdit
cpp Qt 4.x
QDate now = QDate::currentData();
qDebug() << now.toString();
ExpandDiskEdit
cpp
time_t date = time(0);
cout << ctime(&date);
ExpandDiskEdit
go 1+
fmt.Println(time.Now())
DiskEdit
erlang
io:format("~p~n", [calendar:local_time()])

Submit a new solution for ruby, csharp, clojure, fsharp ...
There are 11 other solutions in additional languages (fantom, groovy, haskell, java ...)