Date

Overview #

Date or Date/Time Picker.

Field Type Parameters: #

  1. Type (optional) – Date or Date/Time
    • date – (Date Only. A date, supported range is 1000-01-01 to 9999-12-31..)
    • datetime – (Date and Time. A date and time combination, supported range is 1000-01-01 00:00:00 to 9999-12-31 23:59:59..)

Value Processing Parameters: #

Basic usage:

{{ FieldName }}

Usage with parameters:

{{ FieldName(Format) }}
  1. Format (optional) – PHP date format, e.g., ‘Y-m-d H:i:s’ or Joomla defined format (language supported) if left empty. Use ‘timestamp’ to return the datetime in UNIX timestamp format.

Example:

{{ FieldName("Y-m-d") }}


Pure Value (Unprocessed): #

Example:

{{ FieldName.value }}


Edit Record Parameters: #

Adds a date input field that allows users to select dates using a calendar picker. The date can be formatted according to specified date format patterns.

Basic usage:

{{ FieldName.edit }}

Usage with parameters:

{{ FieldName.edit(CSS Class, Attributes, Format) }}
  1. CSS Class (optional) – Name or names of CSS class(es).
  2. Attributes (optional) – Optional attributes like: disabled, onclick, onchange, etc.
  3. Format (optional) – PHP date format, e.g., ‘Y-m-d H:i:s’

Example:

{{ FieldName.edit("inputbox",onclick='alert(1)',"Y-m-d") }}


What are your feelings

Leave a Reply

Updated on January 9, 2025