YMD2DATE

Purpose:

Converts years, months and days to date values.

Syntax:

YMD2DATE(years, months, days)

years

-

A scalar or series, the year values.

months

-

A scalar or series, the month values.

days

-

A scalar or series, the day values.

Returns:

A series or array of Julian integer date values.

Example:

W1: ymd2date(2030, 10, 31)

 

W1 contains the Julian day value of 2462806 representing the date:

 

10-31-2030

Example:

W1: {1998, 1999, 2000}

W2: {1, 1, 1}

W3: {10, 11, 15}

W4: ymd2date(w1, w2, w3)

 

W1 contains the year values.

W2 contains the month values.

W3 contains the day values.

W4 contains the date series:

1/10/1998

1/11/1999

1/15/2000

Example:

W1: ymd2date(1998..2000, 1, {10, 11, 15})

 

Same as above except the year, month and day values are entered directly as series.

W1 contains the date series:

1/10/1998

1/11/1999

1/15/2000

Example:

W1: ymd2date(1998..2000, 1, {10, 11, 45})

 

Same as above except the last day value of 45 causes the resulting month to rollover.

W1 contains the date series:

1/10/1998

1/11/1999

2/14/2000

Remarks:

YMD2DATE creates a date series by combining individual year, month and day values.

 

Out of range month and day values are rolled over.

 

See DATE2YMD to convert a date series to series of years, months, days.

 

See YMDHMS2DT to convert years, months, days, hours, minutes and seconds to a date time series.

See Also:

DATE2YMD

DOY2DATE

DT2TIMESTAMP

DT2YMDHMS

DTDURATION

DTPERIOD

GETDT

TIMESTAMP2DT

YMDHMS2DT