XF 2.2 Retrieving the Current Date in a Controller

Gossamer

Active member
Hello! Is there a way in XF2 to retrieve today's date in a controller?

I used this code in my XF1 controller, but I haven't been able to find an equivalent in XF2 yet.
PHP:
$today = XenForo_Application::$time;
 
Back
Top Bottom