Hi, I would like to check the current date before showing a form. The form should expire on a specific date and show an notification like 'Subscription closed'. Can this be done?
Thanks in advance!
Thanks in advance!
<?php
if (time() > strtotime("05/15/2015 4:00PM") ) {
return 'closed';
}
?>
<?php
$app = JFactory::getApplication();
$app->enqueueMessage('Sorry, we&squo;re closed');
$app->redirect('index.php');
?>