Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Summitt Dweller on
I'm trying to determine how I can add a Views default argument similar to "Calendar Current Date" in Drupal 8. Specifically I would like my view to show me events in the coming month, not the current,. In the past I would have provided a PHP snippet something like this return date("Ym", now() + 2592000);
. But there is no longer a PHP option in D8, only "Calendar Current Date" and others including "Fixed". Can anyone point me in the right direction? Thanks.
Comments
use Custom Format for Date field
When you are selecting Date field in Views Display section-