Forums

convert date

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.
healyhatman 09 May, 2019
Answer
1 Likes
{date:d.m.Y$(tableviewname.row.model.datename)}
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.