Time::date()

Returns the day of the month.

Table of Contents
  1. Description
  2. Example

Description

Time::date(): string;

This method returns the day of the month, 2 digits with leading zeros.

Example

$time = new Time;

echo $time->date(); // Returns `'03'`

Time::date()

Returns the day of the month.

Time::day()

Returns the day number of the week, or the day name.

Time::format()

Returns the date/time formatted according to the given format.

Time::i()

Returns the date/time formatted according to the given pattern.

Time::name()

Returns the date/time format as a valid file name.

Time::to()

Converts current date/time zone to other date/time zone.