In this guide, we will discuss Erlang date. This method returns the current system date.
Syntax
date()
Parameters
- None
Return Value
The current date is returned as a list.
For example
-module(helloworld). -export([start/0]). start() -> io:fwrite("~p~n",[date()]).
Output
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 −
{2016,4,17}
Next Topic : Click Here
Pingback: Erlang - BIFS | Adglob Infosystem Pvt Ltd
Great blog post. Want more.