| Search Locate Previous Next | Contents |
Description
Edit field which expects and assigns dates as numeric scalars. The appearance is picked up from WIN.INI, so formatting information is optional. It operates a simple moving window around the century change if you use 2-digit years.
The field has a simple spin behaviour, which increments the days, and kicks over the months when required. The string t[oday] is acceptable; also the field defaults to {current} when month or year are omitted.
Dates are held as the elapsed days, with 01/01/1900 as day-1. This is the same scheme as Dyalog uses, and allows easy addition and subtraction of dates. Note that 29-1-1900 is NOT a leap year (unlike the Excel bug unless you switch to Excel mode).
Pressing <Enter> with a partial date re-displays it in its complete form. A further <Enter> confirms, and is passed through to the <OK> button if there is one.
Class Property Table
| Name | Type | Default | Description |
| Hint | String | ||
| Style | ManyOf | ||
| Date | User | Date variable (integer date) | |
| Picture | Runtime | Date picture (e.g. dd-m-yyyy) | |
| Encoding | OneOf | Dyalog | Compatibility mode (Dyalog or Excel) |
| Delay | Int | 400 | Initial delay (ms) |
| Interval | Int | 50 | Repeat interval (ms) |
| Tracking | Bool | 1 | Update data every click |
| Visible | Runtime | Boolean singleton | |
| Active | Runtime | Boolean singleton |
Class-specific Functions
| DayofWeek | Returns day of week as 3-element text given ordinal date |
| SetWindow | Set sliding date window (cf 1st element of yy_window) |