ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

date in list

webcrea 22 May, 2017
Hi,

How to show a timestamp in date format in a table list ?

I tried
Created:{date:timestamp_date_created}
and appears several dates, i thinck it's possible to select one format...

Thanks
Max_admin 22 May, 2017
Hi Chris,

You have a time stamp ? how do you get its value ?

Please try this:
{date:Y-m-d H:i:s$(var:read_data_name.model.timestamp_field)}

This works with the latest update only because you can pass parameters to the functions calls.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
webcrea 23 May, 2017
Hi Max,

I'm in the context of a list view (table),

in columns list :

o_order.order_created:Created

shows the timestamp from database

Thanks
Regards
Max_admin 24 May, 2017
Hi Chris,

So you need this:
o_order.order_created:{date:Y-m-d H:i:s$(var:read_data_name.row.o_order.order_created)}
in the "Columns views"

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
webcrea 24 May, 2017
Hello Max,

In column list i put o_order.order_created:Created, if not the created date doesn't appear and now, in each row shows the date now not the created date!

in columns views
o_order.order_created:{date:Y-m-d H:i:s$(var:read_hikaorder.row.o_order.order_created)}

sorry i don't understand

Regards
Chris
Max_admin 24 May, 2017
Hi Chris,

What happens when you use {var:read_hikaorder.row.o_order.order_created} ? does it display the order date in each row ? in which format is the date ?

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
webcrea 29 May, 2017
Hi Max,

in columns list
order_created:Created

if o_order.order_created:Created display timestamp in each row and different

in columns view

order_created:{date:Y-m-d H:i:s$(var:read_hikaorder.row.o_order.order_created)}
display date now in good format
2017-05-29 07:26:13

order_created:{date:Y-m-d H:i:s$({var:read_hikaorder.row.o_order.order_created})}
order_created:{date:Y-m-d H:i:s${var:read_hikaorder.row.o_order.order_created}}
display error
DateTime::__construct(): Failed to parse time string (({var:read_hikaorder.row.o_order.order_created) at position 0 ((): Unexpected character

Thanks
regards
Max_admin 29 May, 2017
Hi Chris,

Please use () inside {}, you can not use nested {{}}, like this:
order_created:{date:Y-m-d H:i:s$(var:read_hikaorder.row.o_order.order_created)}

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
webcrea 29 May, 2017
I know,

order_created:{date:Y-m-d H:i:s$(var:read_hikaorder.row.o_order.order_created)}
display date now in good format but always now() not the real date
2017-05-29 07:26:13

regards
Max_admin 30 May, 2017
Hi Chris,

Maybe you should try:
o_order.order_created:{date:Y-m-d H:i:s$(var:read_hikaorder.row.o_order.order_created)}

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
webcrea 30 May, 2017
Hi Max,

idem the column display the dat"e of now in each row

Thanks
Regards
Max_admin 30 May, 2017
Hi Chris,

Please post a screenshot of the table settings at the moment.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
webcrea 01 Jun, 2017
Answer
1 Likes
Hello Max,

I found, my error was i made a mystake in var, used function name unstead view name😟

o_order.order_created:{date:Y-m-d H:i:s$(var:table_orders.row.o_order.order_created)}

where table_orders is the view name...

{date:Y-m-d H:i:s$(var:view_name.row.model_name.timestamp_field)}

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

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com