Buy Now
Sign in

convert date

Fredolino , May 09 2019, 18:04
Fredolino 382
May 09 2019, 18:04 #386699
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 7
May 09 2019, 21:58 #386704
 1
 Answer
{date:d.m.Y$(tableviewname.row.model.datename)}
Web developer at SkySpider.com.au - I DO NOT work for ChronoEngine!
Donations: paypal.me/healyhatman
Professional Work: kamron@skyspider.com.au
Custom CF / CC Plugins and Extensions: skyspider.com.au/store
Fredolino 382
May 10 2019, 08:27 #386722
:-)
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.