Zend\Ldap\Converter\Converter::toLdapDateTime
Converts a date-entity to an LDAP-compatible date-string
The date-entity <var>$date</var> can be either a timestamp, a DateTime Object, a string that is parseable by strtotime().
Signature
public function toLdapDateTime(int|string|DateTime
$date,
[bool
$asUtc = true] )
Parameters
$date
— object- The date-entity
$asUtc
— object- Whether to return the LDAP-compatible date-string as UTC or as local value
Returns
- string