LoginLogin

DTREAD

Root / Documentation / [.]

Created:
Decompose a datestamp string to numbers. * Syntax ```sbsyntax DTREAD { datestamp$ } OUT year%, month%, day% {, weekday% } ``` |* Input | Description | | `datestamp$` | The datestamp to convert. (optional)\ If omitted, the value of `DATE$` is used. | |* Output | Description | | `year%` | The year contained in `datestamp$`. | | `month%` | The month contained in `datestamp$`. | | `day%` | The day contained in `datestamp$`. | | `weekday%` | The day of the week corresponding to the date. (optional)\ 0-6, Sunday is 0. | * Examples ```sb4 'read the current date VAR YR%,MO%,DY% DTREAD OUT YR%,MO%,DY% ``` ```sb4 'what weekday is this date? VAR WK% DTREAD "2019/12/25" OUT ,,,WK% ```

No posts yet (will you be the first?)