Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
472 views
in Themes by
hi

is there any functions to get today date in qa-theme.php ?

thanks
Q2A version: 1.7

1 Answer

+3 votes
by
selected by
 
Best answer

Although you could use the PHP's time() function to solve this issue, the Q2A way to get the current time is fetching it as a Unix timestamp by means of:

qa_opt('db_time')

Then you can format it as you normally would with the date() function.

...