Enter a date or a date and time

This guide is divided into two sections: the first explains how to create a custom field of type Date or Date and Time; the second explains how to use the field once created.


Guide: Insert a Date or Date and Time Field

Part 1: Creating the Custom Field

To insert a date or a date and time in a form (such as Products, Customers, etc.), you must first define the field in the custom fields management section.

1. Access Field Management:

  • Navigate to the system configuration section (usually "Settings" or "Plugins").
  • Select the Custom Fields item.
  • In the sidebar menu (labeled Select item to edit), click on the module where you want to add the field (for example, Products or Customers).

2. Add a New Field:

  • Within the selected module screen, add a new row to define the field.

3. Define Name and Type:

  • In the field labeled Field name, enter the name you want to give to the field (e.g., "Expiration Date" or "Event Start Date").
  • In the Field type dropdown menu, select one of the following options:
  • Date: If you only need to enter day, month, and year (format dd/mm/yyyy).
  • Date and time: If you need to enter day, month, year, and also time (format dd/mm/yyyy hh:mm).

4. Define Tab (Optional):

  • In the Tab name field, you can specify a name for the tab where this field will appear (e.g., "Additional Data"). If left empty, the field will appear in the default tab Additional fields.

5. Save:

  • Make sure to save the changes made to the custom fields configuration.

Part 2: Using the Date/Date and Time Field

Once the field has been created and saved, it will be available when editing a record within the chosen module (e.g., a specific product).

1. Edit a Record:

  • Go to the module where you created the field (e.g., your Products list).
  • Open an existing record or create a new one.

2. Find the Additional Fields Tab:

  • Look for the tab that you defined in step 4 of Part 1 (or the Additional fields tab if you did not specify a name).

3. Enter Date/Time:

  • Locate the field with the name you assigned (e.g., "Expiration Date").
  • Click on the text field.
  • A date or date and time picker will open:
  • For Date field: Select desired day, month, and year. The input format will be dd/mm/yyyy.
  • For Date and time field: Select day, month, year, and set hours and minutes. The input format will be dd/mm/yyyy hh:mm.

4. Save Record:

  • Save the record (Product, Customer, etc.) to apply adding the date or date and time.