Converts years, months and days to date values.
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. |
A series or array of Julian integer date values.
W1: ymd2date(2030, 10, 31)
W1 contains the Julian day value of 2462806 representing the date:
10-31-2030
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
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
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
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.