__construct() __construct(array $data) DateHelper constructor. Parameters array $data DateHelper data. Throws \Exception When constructor's data missing.
formatDate() formatDate(mixed $date, string $format = 'default') : string Parameters mixed $date The date [startDate, endDate] DateTimeInterface string. string $format The format to use. Returns string
formatTime() formatTime(mixed $date, string $format = 'default') : string Parameters mixed $date The date [startDate, endDate] DateTimeInterface string. string $format The format to use. Returns string
formatDateFromCase() formatDateFromCase(string $case) : string Parameters string $case The use case. Returns string
formatTimeFromCase() formatTimeFromCase(string $case) : string Parameters string $case The use case. Returns string
parseAsDate() parseAsDate(mixed $date) : \DateTime Parameters mixed $date The date to convert. Returns \DateTime
crossPlatformFormat() crossPlatformFormat(mixed $format) : mixed Parameters mixed $format DateTime to be formatted. Returns mixed