PHP code example of gpnalin / module-date-time
1. Go to this page and download the library: Download gpnalin/module-date-time library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gpnalin / module-date-time example snippets
json
POST /V1/datetime/calculate
Content-Type: application/json
{
"startDate": "2023-01-01T00:00:00+00:00",
"endDate": "2023-01-10T00:00:00+00:00",
"calculationType": "days"
}
json
{
"startDate": "2023-01-01T00:00:00+00:00",
"endDate": "2023-01-10T00:00:00+00:00",
"calculationType": "days"
}