Date fields and calendar
A date field is a short text field that reads the date in the program's format and corrects it. Beside the field there is a button that opens a calendar window, and the right-click menu of the field has Today, Month Beginning, Month End and more. This page explains the field, the calendar and the menu. The steps to enter a date are in Enter a date.
Kinds
| Field | Where you see it | What it has |
|---|---|---|
| Native date field | The cards and windows of the program built in the native style. | The calendar button, the date menu and the keys. This is the subject of most of this page. |
| Date field with a check box | Optional date fields, such as a date you may leave empty. | A small box at the edge of the field. See No date. |
| Modern date field | Report conditions and the windows of the modern modules. | A calendar window. Its menu is explained in The modern field menu. |
Opening the calendar
- Click the calendar button beside the field. Its tip is Display Calender Window.
- Or press
Alt+Down Arrowwhile the cursor is in the field.
The calendar does not open if the field is read-only. If the field is empty or holds 1-1-1980, opening the calendar puts today's date in the field at once, and the calendar starts at it. Otherwise it starts at the date in the field.
The window appears under the field, from the start side of the field. If there is no room below, it appears above, and it always stays inside the screen.
The calendar opens as a Gregorian calendar and shows the Hijri date at the bottom. If Hijri date is the main date is on in Program Options > Language, it opens as a Hijri calendar and shows the Gregorian date at the bottom. See The Language page.

The calendar window
The window has these parts, from top to bottom:
| Part | Description |
|---|---|
| Month name | The large title. Click it to go to the months view. In the months view it opens the years view. It is disabled in the years view. |
| Year | Beside the month name in the days view. Click it to go to the years view. |
| The four arrows | Two arrows for the short step and two for the long step, one pair in each direction of time. The steps are in the table below. Hold an arrow down and the program repeats the step. An arrow is disabled at the limit of the calendar, and the program beeps if you try to pass it. |
| Weekdays | The row of names above the grid. Friday and Saturday are red. The first column is the first day of the week saved in the file, the option Week start in the Language page. |
| The grid | In the days view: 42 cells, six weeks. Days of the previous and next month are dim. Today is marked, and the chosen day is shaded. |
| The footer | The date in the other calendar, with a symbol of the moon on that day. It shows the day under the pointer, or the chosen day when the pointer is not on a day. |
| Restore | Returns the calendar to the date that was in the field when the window opened. It is disabled while the chosen date is that date. Its tip shows the date it restores. |
Today (F2) | Moves the calendar to today's date and selects it. It does not close the window. |
The step of the arrows depends on the view:
| View | Short step | Long step |
|---|---|---|
| Days | One month | One year |
| Months | One year | 10 years |
| Years | 10 years | 100 years |
The calendar limits are the years 1901 to 2100 in the Gregorian calendar. The last year the field accepts when you type is 2099.
The three views
- Days view: the grid of days. Clicking a day selects it and closes the window.
- Months view: twelve months in four rows, titled with the year. Click a month to return to the days of that month.
- Years view: a decade of years, with one dim year before it and one after it. Click a year to go to its months.
The grid slides or zooms when you move between days, months and years, unless window animations are turned off in Windows.
The mouse
- Click a day in the days view: the program writes the chosen date in the field and closes the calendar.
- Roll the mouse wheel up to go back one short step in time, and down to go forward one short step.
The keyboard
This works while the focus is on the grid. In Arabic windows the Left Arrow goes toward the future and the Right Arrow toward the past. In English windows it is the opposite.
| Key | In the days view | In the months or years view |
|---|---|---|
| Left and Right Arrow | One day | One month, or one year |
| Up and Down Arrow | 7 days | 3 items |
Home / End | Start / end of the month | Nothing |
Page Up / Page Down | One month back / forward | The short step back / forward |
Ctrl+Page Up / Ctrl+Page Down | One year back / forward | As without Ctrl |
F2 | Selects today | Selects today |
Enter | Closes the window | Goes to what the selected item holds: from months to its days, from years to its months |
Space | Nothing | As Enter |
Esc | Closes the window | As Enter |
Closing the window
- Clicking a day closes the calendar and writes the date in the field.
Esc,Enter, or a click outside the window close the calendar and leave the field with the date it had. The exception is a field that was empty or held1-1-1980when you opened it: opening the calendar has already put today's date in the field, andEscdoes not bring the old value back.
Moving with the arrows and keys inside the window does not change the field by itself. The field changes when you click a day.
The field itself
Type the date as numbers separated by a hyphen -, the only separator the program reads. The field accepts 11 characters. The format you type follows Date Format (PC) in Program Options > Numbers. See The Numbers page.
| Selected format | Example |
|---|---|
| day-month-year without a leading zero | 1-5-2026 |
| day-month-year with a leading zero | 01-05-2026 |
| year-month-day without a leading zero | 2026-5-1 |
| year-month-day with a leading zero | 2026-05-01 |
- The field accepts both orders when you type. It tries the selected one first, then the other if the numbers are not a valid date in the first.
- A year typed with two digits is completed to 20 and the two digits:
1-5-26is1-5-2026. In the Hijri calendar it is completed to 14 and the two digits. Type the year with four digits:31-4-26(a day that does not exist in that month) is read in the other order as 26-4-2031, without a beep. - The program starts reading from today's date, and completes what it cannot read from it. You can type the day alone, or the day and month:
15is the 15th of this month. With a year-first format the first part is read as the year. - When you move out of the field after changing it, the program reads the text. If the numbers are not a valid date in either order, it beeps and puts back the date that was in the field. No message appears.
- If you clear the text and leave the field, it shows
1-1-1980, the date that means no date. - After reading, the program shows the date in the selected format. For example,
1-5-26becomes1-5-2026.
The field shows no message when it completes what it cannot read from today's date. Letters become today's date, and 15/3/2026 becomes day 15 of the current month, because reading stops at /. It beeps and puts back the old date only when the numbers are not a valid date, such as 31-2-2026. Check the date after typing it.
Three examples in the day-month-year format:
| What you type | What the program reads |
|---|---|
15/3/2026 | Day 15 of the current month in the current year, without a beep. The / is not read, so the other parts stay as today's. |
15-3 | 15 March of the current year. |
31-2-2026 | Not accepted in either order: a beep, and the previous date comes back. |
Keys of the field:
| Key | What it does |
|---|---|
F2 | Puts today's date. |
| Up Arrow | The previous day. |
| Down Arrow | The next day. |
Page Up | The previous month. |
Page Down | The next month. |
Ctrl+Page Up | The previous year. |
Ctrl+Page Down | The next year. |
Alt+Down Arrow | Opens the calendar. |
F2, Up Arrow and Down Arrow do not work while Shift, Ctrl or Alt is held down. None of the keys works in a read-only field.
The field menu
Right-click the field. The menu starts with the usual text items (Undo, Cut, Copy ...), explained in Lookup boxes and search windows. After a separator come the date items. All of them change the field at once.
| Item | The value it puts |
|---|---|
| Reconciliation Date | The reconciliation date that the window sets. It appears only in a window that supports it. If the window gives none, the beginning of the period is used. |
Today (F2) | Today's date. |
| Month Beginning | The first day of the month of the date in the field. |
| Month End | The last day of that month. |
| Year Beginning | The first day of the year of the date in the field. |
| Year End | The last day of that year. |
| Beginning of Period | The start date of the accounting period of the open file. |
The program computes the month and the year in the Hijri calendar if it is the main one.
A field with no date
Some date fields have a check box at their edge. Clear the box to make the field a field without a date: it shows the text <Without> and becomes read-only. Tick the box to edit the date again.
The modern date field
In report conditions and in the windows of the modern modules the field is one of two kinds:
| Kind | When | Description |
|---|---|---|
| Field with a calendar window | The normal case, with the Gregorian date as the main date. | The button of the field opens a window to choose the date. Its look is set by the option Date Control Style in Report Options > Options Dialog, with the values Calendar and Picker. |
| Text field | The Hijri date is the main date. | You type the date in the selected format. There is no calendar window. |
The format is the same Date Format (PC).
Keys of the modern field:
| Key | What it does |
|---|---|
F2 | Puts today's date. |
| Up / Down Arrow | The previous / next day. |
Page Up / Page Down | The previous / next month. |
Ctrl+Page Up / Ctrl+Page Down | The previous / next year. |
The modern field menu
| Item | What it does |
|---|---|
Cut (Ctrl+X), Copy (Ctrl+C) and Delete | Work on the selected text, and are disabled when no text is selected. |
Paste (Ctrl+V) | Pastes the text of the clipboard. Disabled when the clipboard holds no text. |
Clear (Ctrl+Delete) | Empties the field. It appears only if the field allows being empty. The empty field then shows None. |
Select All (Ctrl+A) | Selects the text of the field. Disabled when the field is empty. |
Today (F2) | Today's date. |
| First of Month and Last of Month | The first and last day of the month of the current date. |
| First of Year and Last of Year | The first and last day of its year. |
| Accounting Period Beginning | The start date of the accounting period. |
See Parameter forms for where these fields appear.
Messages
The field itself shows no messages, and its alerts are sounds. The window that holds the field may check the date by its own rules and show its own messages. The sounds:
| When | What happens |
|---|---|
You typed numbers that are not a valid date, such as 31-2-2026, or a year of 2100 or later, and moved out of the field | A beep, and the previous date comes back. |
| You tried to pass the year 1901 or 2100 in the calendar | A beep, and the calendar does not move. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.