Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Show latest activity date

+1 vote
3,130 views
asked Jun 30, 2015 in Q2A Core by WhyCheese
I don't display any dates in questions but i want to display only latest action date in qa-main for example.
Q2A version: Latest

1 Answer

0 votes
answered Jul 2, 2015 by q2apro
Can you specify "action date"? Maybe you mean the last activity of question/answer/comment.

Then you could query:

                $lastactivity = qa_db_read_one_value(
                     qa_db_query_sub( 'SELECT `created` FROM `^posts`
                                ORDER BY created DESC
                                LIMIT 1
                      '), true );

which would return something like: "2015-07-02 23:00:13"
...