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

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

  • default => values => default value

## Example

  iex> params = [id: :date_test, default: "1999-09-03"]
  ...>{type: :date, opts: params})

## Return


Link to this section Summary

Link to this section Functions