Calendar filelds value error

Set a default date in a CF calendar field.

Overview

The date format in the default value field was incorrect for CF8's storage requirements.
Use the exact date format that matches the field's storage format, typically Y-m-d H:i:s, in the default value setting.

Answered
ChronoForms v8
sy sylwekb 29 Jan, 2024
After adding the calendar to the Value field, the date is not displayed. I would like the value to default to the current date of a given day in the format I choose.

{date:d-m-Y}

Has anything changed in Chwonoforms 8? In Chronoforms 6 it worked. What do I need to add to provide the default date in Chronoforms 8?

Nan NAN NAN is displayed
Max_admin Max_admin 13 Apr, 2024
Answer
assuming the Calendar field stored fromat is:

YYYY-MM-DD HH:mm:ss

then you should use

{date:Y-m-d H:i:s}

as the default field value
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.