Get the certain date of a specified day in a specified format.
Parameters
$periodstringrequired- Supported values: start, end.
$timestampstringoptional- Default is the current timestamp, if left empty.
Default:
'' $formatstringoptional- Default is a MySQL format.
Default:
'Y-m-d H:i:s'
Changelog
| Version | Description |
|---|---|
| 1.1.0 | Introduced. |