Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear
- input str80 string
- "06-08-2003"
- "30-02-1934"
- "19-11-1923"
- "12-04-1997"
- "29-12-1945"
- end
- encode string, generate(numeric)
- sort numeric
- list
- +-------------------------+
- | string numeric |
- |-------------------------|
- 1. | 06-08-2003 06-08-2003 |
- 2. | 12-04-1997 12-04-1997 |
- 3. | 19-11-1923 19-11-1923 |
- 4. | 29-12-1945 29-12-1945 |
- 5. | 30-02-1934 30-02-1934 |
- +-------------------------+
- drop numeric
- generate numeric = date(string, "DMY")
- format %tddd-NN-YY numeric
- list
- +-----------------------+
- | string numeric |
- |-----------------------|
- 1. | 06-08-2003 6-08-03 |
- 2. | 12-04-1997 12-04-97 |
- 3. | 19-11-1923 19-11-23 |
- 4. | 29-12-1945 29-12-45 |
- 5. | 30-02-1934 . |
- +-----------------------+
- sort numeric
- list
- +-----------------------+
- | string numeric |
- |-----------------------|
- 1. | 19-11-1923 19-11-23 |
- 2. | 29-12-1945 29-12-45 |
- 3. | 12-04-1997 12-04-97 |
- 4. | 06-08-2003 6-08-03 |
- 5. | 30-02-1934 . |
- +-----------------------+
Add Comment
Please, Sign In to add comment