dojox.date.php.DateFormat
dojo.require("dojox.date.php");
defined in dojox/date/php.js
Format the internal date object
Usage
function (/*String*/ format) (view source)
parameter | type | description |
---|---|---|
format | String |

ConstructorsBack to top

Swatch Internet time A day is 1,000 beats. All time is measured from GMT + 1

A textual representation of a day, three letters

A full textual representation of a month, such as January or March

24-hour format of an hour without leading zeros

24-hour format of an hour with leading zeros

Whether or not the date is in daylight saving time TODO: Can dojo.date do this?

Whether it's a leap year

A short textual representation of a month, three letters

ISO-8601 numeric representation of the day of the week (added in PHP 5.1.0)

Difference to Greenwich time (GMT) in hours

Difference to Greenwich time (GMT) with colon between hours and minutes (added in PHP 5.1.3)

English ordinal suffix for the day of the month, 2 characters

Timezone abbreviation

Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)

ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0)

A full numeric representation of a year, 4 digits

Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.

FunctionsBack to top

Lowercase Ante meridiem and Post meridiem

Uppercase Ante meridiem and Post meridiem

ISO 8601 date (added in PHP 5)

Day of the month, 2 digits with leading zeros

Timezone identifier (added in PHP 5.1.0)

12-hour format of an hour without leading zeros

12-hour format of an hour with leading zeros

Minutes with leading zeros

Day of the month without leading zeros

A full textual representation of the day of the week

Numeric representation of a month, with leading zeros

Numeric representation of a month, without leading zeros

ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0) TODO: Figure out what this means

RFC 2822 formatted date

Seconds, with leading zeros

Number of days in the given month

Numeric representation of the day of the week

A two digit representation of a year

The day of the year (starting from 0)