Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use the following key and examples to customize date tokens. Formatting is case sensitive.

You can also use most Most special characters, such as colon, hyphen, and forward slash, are allowed.

Date Format Key

Character

Description

Examples

Days

---

---

d

Numeric day of the month with leading zeroes

01, 31

j

Numeric day of the month without leading zeroes

1, 31

S

Suffix corresponding to the day

st, nd, rd, th

l (lowercase L)

Day of the week

Monday, Sunday

Months

---

---

m

Numeric month with leading zeroes

01, 12

n

Numeric month without leading zeroes

1, 12

M

Shorthand for a month

Jan, Dec

F

Full month

January, December

Years

---

---

y

Shorthand for a year

99, 03

Y

Full year

1999, 2003

Time

---

---

a

Lowercase am or pm

am, pm

A

Uppercase AM or PM

AM, PM

g

Hour (12 Hour format)

1, 12

i

Minute

00, 59

s

Second

00, 59

T

Timezone

EST, MDT, +05

...