This method returns the current system date.
The current date is returned as a list.
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[date()]).
When we run the above program we will get the following result. The date value depends on the current system date. An example is as follows −