Get the current date and time from the terminal.