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.
ExpandDiskEdit
cpp Qt 4.x
QDate now = QDate::currentData();
qDebug() << now.toString();
ExpandDiskEdit
cpp
time_t date = time(0);
cout << ctime(&date);

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