Erlang – date

Erlang date

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

This Post Has 2 Comments

Leave a Reply