convert date

Convert a database date format in ChronoForms.

Overview

The date stored as Y-m-d was not converting to d.m.Y using the initial column view syntax.
In the CF view settings, replace the variable in the content field with the date function using the correct syntax to format the output.

Answered
Connectivity v6
Fr Fredolino 09 May, 2019
Hi,

In the demo example, I tried the date stored in the database in the format:
2019-05-09
to convert into the date: 09.05.2019
Under "Views" in "articles_list" in the "Colums list":
"Article.datum:Datum" will be displayed to me "2019-05-09"
In the field "Columns views" I wanted to convert the date:
"Article.datum": {date: Y-m-d $ (var: d.m.Y)}
Does not work.
Where do I have to convert the date?

F.
Fr Fredolino 10 May, 2019
:-)

Yes it works!

The:
{Var: articles_list.row.Article.datum}
must be in "Views" under "article_view_link" in the field "Content"
to be exchanged with:
{Date: d.m.Y $ (var: articles_list.row.Article.datum)}

F.
This topic is locked and no more replies can be posted.