Versions Compared

Key

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

/wiki/spaces/DASSB100/pages/32569527069 Dates are one of the primitive data types used in Datameer. However, it is often necessary (during data imports and exports as well as when working with certain functions) to convert a date represented as a string to a form that is recognized as a date by Datameer. This is done by parsing the pattern so that it can be correctly interpreted. Use the table below to define the parse pattern.

...

Letter

Date or time component

Shown as

Example

G

Era designator

Text

AD

CCentury of eraNumber20
YWeek yearYear of eraYear1996
wWeek in yearNumber27
eDay in weekNumber2
E, EE, or EEE - EEEEDay of the weekTextTue - Tuesday

y

Year

Year

1996; 96

DDay in yearNumber189
MM - MMM; MMMMMonth of yearMonth01 - Jan; January
d


Day in month

Number

10

a

Am/pm marker

Text

PM

K

Hour in am/pm (0-11)

Number

0

h

Hour in am/pm (1-12)

Number

12

H

Hour in day (0-23)

Number

0

k

Hour in day (1-24)

Number

24

m

Minute in hour

Number

30

s

Second in minute

Number

55

S

Millisecond

Number

978

xWeek's yearNumber14

Examples

From string to date

...