EJSC.DateFormatter.format_string

See Also

Top  Previous  Next

 

Definition

 

string format_string = ""

 

Description

 

The following format options are available:

 

Format

       

YYYY

       (4) digit year (i.e. 2007)

YY

       (2) digit year (i.e. 07)

MMMM

       month name (i.e. January)

MMM

       month name (i.e. Jan)

MM

       (2) digit month of the year with leading zeros (i.e. 01)

M

       of the year without leading zeros

DDDD

       day of the week (i.e. Monday)

DDD

       day of the week (i.e. Mon)

DD

       (2) digit day of the month with leading zeros (i.e. 04)

D

       of the month without leading zeros

HH

       of the day in 24-hour format with leading zeros

H

       of the day in 24-hour format without leading zeros

hh

       of the day in 12-hour format with leading zeros

h

       of the day in 12-hour format without leading zeros

NN

       with leading zeros

N

       without leading zeros

SS

       with leading zeros

S

       without leading zeros

ZZZ

       (3 places) with leading zeros

ZZ

       (2 places) with leading zeros

Z

       without leading zeros

AA

       /PM notation

A

       /P notation

aa

       /pm notation

a

       /p notation