Forums

Calendar filelds value error

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 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.
You need to login to be able to post a reply.