How can I show the date and time on console

Hi,

How can I show the date and time on console ?