protected function USPSShipment::getProductionDate in Commerce USPS 8
Returns the current date.
Return value
string The current date, formatted.
1 call to USPSShipment::getProductionDate()
- USPSShipment::setExtraOptions in src/
USPSShipment.php - Sets any extra options specific to the shipment like ship date etc.
File
- src/
USPSShipment.php, line 118
Class
- USPSShipment
- Class that sets the shipment details needed for the USPS request.
Namespace
Drupal\commerce_uspsCode
protected function getProductionDate() {
$date = date('Y-m-d', strtotime("now"));
return $date;
}