CustomerDateOfBirth

Extends \DateTime

Value Object

Class CustomerDateOfBirth

Represents a customer birth date

category

System

package

Customer

subpackage

ValueObjects

extends

DateTime

Methods

Constructor of the class CustomerDateOfBirth.

__construct(string $p_dateOfBirth = '1000-01-01 00:00:00') 

Arguments

$p_dateOfBirth

string

Customer's date of birth.

Format DateTime

format(string $p_format) : mixed|string

Formats a date by a given pattern and ensures that dates that represent empty data are formatted to '1000-01-01 00:00:00'

Arguments

$p_format

string

Date format.

Response

mixed|string

Formatted date.

Properties

Is null date?

isNullDate : boolean
var

Type(s)

boolean