View Source Arke.Core.Parameter.Date (Arke v1.1.33)
Module that define the struct of a Date by extending the Arke.Core.Parameter.base_parameters().
accepted-values
Accepted values
Date accepts the following format as values:
string => "YYYY-MM-DD" (separator must be - hyphen)
sigil => ~D[YYYY-MM-DD] (separator must be - hyphen)
struct => %Date{}
{arke_struct} = Parameter.Date
element-added
Element added
default
=> values => default value
## Example
iex> params = [id: :date_test, default: "1999-09-03"]
...> Arke.Core.Parameter.new(%{type: :date, opts: params})
## Return
%Arke.Core.Parameter.Date{}