hana+nils

Date Methods

Date Methods is a plugin that allows for advanced date and time parsing and formatting using PHP's core date objects. It offers methods for fields to handle single dates, methods for pages to handle multiple dates (ranges) and also provides helper functions to simplify working with dates and times in general.

$page
  ->date()
  ->toDateTime()
  ->modify('+1 month')
  ->format('Y-m-d');
Version
2.1.0
License
MIT
Stars
23
Supports
K4 K3
Updated
5 Oct 2022
More