get_date( Day / Month / Year )
Gets current date. The arguments have to be not-instantiated (to receive the date) or to contain a date information to be compared with the current date.
?- get_date(Day/Month/Year), Str is "Today is " + print(Day), write(Str), nl.
?- get_date(Date), write("Today
is "), write(Date), nl.
Look at examples: