Date.Pattern

Namespace: PP

Description

The PP.Date.Pattern enumeration contains date formatting variants.

Used by the PP.Date.format property.

Available Values

Value

String value

Date example

Default

"Y-m-d\\TH:i:s.uP"

2016-09-05T11:24:21.453+05:00

ISO8601Long

"Y-m-d H:i:s"

2016-09-05 11:24:21

ISO8601Short

"Y-m-d"

2016-09-05

ShortDate

"n/j/Y"

9/5/2016

LongDate

"l, F d, Y"

Monday, September 05, 2016

FullDateTime

"l, F d, Y g:i:s A"

Monday, September 05, 2016 11:24:21 AM

MonthDay

"F d"

September 05

ShortTime

"g:i A"

11:24 AM

LongTime

"g:i:s A"

11:24:21 AM

SortableDateTime

"Y-m-d\\TH:i:sP"

2016-09-05T11:24:21+05:00

UniversalSortableDateTime

"Y-m-d H:i:sO"

2016-09-05 11:24:21+0500

YearMonth

"F, Y"

September, 2016

See also:

PP