Note: You are viewing this page on a small screen device (<640px width). Some of the illustrations and animations in the article may become unreadable after matching them to the screen resolution.

Jerzy Moruś

© All rights reserved. The use of the entire website or parts thereof without written permission is prohibited.

Universal Gregorian Calendar

Development is based on the existing version of the program during its writing, LibreOffice: 5.2.6.

pl de ru

The template is a complete project, so that you can print the calendar for the selected year. The project does not contain macros. Due to the use of IFERROR function it can not be used in an Apache OpenOffice. Apache OpenOffice Calc does not support this feature, and indicates an error (as at version 4.1.3).

Version 1.1 of 02/07/2018
The previous version of the calendar after saving the file and reopening it, "lost" information about the categories assigned to the date, even though the category names were in their places. I improved this selection algorithm. Currently, after saving the file, the categories assigned to the date are not "forgotten". Existing users can copy their input to the new version of the spreadsheet.
In the "Flexible" worksheet, I changed the selection list for the name of the weekday. Currently, the list contains the names of the day of the week in the user language of the LibreOffice package preceded by the ordinal number. Existing users after copying data to this sheet must re-select the name of the day of the week.
Correspondence: calendar(at)
Link to download the calendar version directly from my website calendar.ots.

The user can specify any days that are highlighted on the calendar. Calendar cards contain the names of months and names of the weekdays in the user’s language (the default user’s language of LibreOffice package). The project consists of several sheets. Sheet “Home” allows you to set the basic parameters:

Sheet "Home"
Fig. 1: Starter Sheet of the calendar.

Sheets with names from “I” to “XII” contain cards of individual months of the year. The names of days of the week and the names of months appear in a language which is the default language of the LibreOffice suite (Locale setting).

Sheets “Easter”, “Flexible” and “Fixed” are intended to identify these days in the calendar, which will be highlighted in it.

Three additional sheets are hidden because they are worksheets. All sheets are enabled security and allow you to enter data only to the appropriate locations.

The calendar can be prepared for the years since 1583.

The work has been finished by using the version of LibreOffice 5.2.6.

Selection of the interface language.

The calendar can be operated in one of four languages. Polish (the author’s country), English, German and Russian. The selected language determines the content of the presentation of information. Names of months and days of the week on the pages of the calendar are in a language which is assigned by default to the LibreOffice suite.

Card of the calendar.

Layout of days in the calendar on the month card is shown in Fig. 2.

Calendar page.
Fig. 2: Presentation of days in the calendar.

The illustration shows the card in the Polish language. Each month is represented as an array presenting six consecutive weeks. According to ISO 8601:2004 the first day of the week is Monday. Each week is preceded by its serial number. The order number is assigned within the calendar year in which at least 4 days of this week are contained. This means that some initial days of the year may belong to the last week of the previous year and some last days of year to the first week of the following year.

Each day of the month can be represented as a normal day or the day highlighted. Ordinary days only contain the ordinal number of the day, for weekdays black and red for Sundays. If the serial number of the day should not be presented to the month on the calendar card, it is shown in gray.

Highlighting days.

Distinction of the day consists in determining the date and assigning it to one of the five categories. Days highlighted may contain additional descriptions placed above and below the ordinal number of the day. This description can not be longer than 30 characters.

Types of highlighted days.


Category decides how to present the date in the calendar. Categories are given their own symbolic names just to allow you to refer to them. The use of the category depends entirely on the user. I have defined five categories.

Serial number of a day falling on Sunday is always red, regardless of the assigned category.

You can define your own category names by typing them into the appropriate fields in the worksheet “Home”. To use this names you should additionally enable the “My category name”.

Categories are selected by developing a list of choices. The list appears in the language of interface or, if the option “My category name” is set, the names provided by the user are displayed. If the option is enabled, but names of categories are not defined, the names used in accordance to the interface are displayed. The category is removed by pressing keyboard “DELETE” button. Date that is not assigned to any category is treated as a date without distinction.


Descriptions can be added to each day, but they will appear on the calendar only when the date will be assigned to category. Dates highlighted in the worksheet “Fixed” can have two descriptions. One will be added above the ordinal number of the day and will be given in bold and the second, below the ordinal number of the day, shown in italics. The content of every description can have a maximum of 30 characters. The length of the description is controlled.

Dates highlighted in sheets “Easter” and “Flexible” can have only one description- a top description. If the date occurring in these sheets also has a counterpart in the worksheet “Fixed” then an upper description of the date “Fixed” will be automatically transferred to the lower description of the date in the “Easter” and “Flexible”. If the "Fixed" date does not have a top description, then the bottom description will be moved.

Determination of highlighted days.

All highlighted days form the set of dates selected according to groups: first, dates dependent on Easter, next dates dependent on the day of the week, and finally fixed days. Each date in the calendar is searched in this set, and if it is found it receives an appropriate category and descriptions. The category found at the earliest is accepted. Theoretically, the same date may occur repeatedly in the statement. E.g. Fat Thursday may be specified in the list of days depending on the Easter and fall just on a certain Thursday of the month and also the date of that Thursday may coincide with the date stamped on solids. In such a situation, a category from the list of days dependent on Easter (date occurs earlier) will be accepted.

To the dates in sheets “Easter” and “Flexible” can not be attributed to the category of “Black”. If the Easter Sunday (“Easter” sheet) does not have a category, then no dates will be highlighted.


To print selected months you should note these sheets and print them. Selecting a few sheets selected - CTRL+click on any chosen selection sheets, “from - to” “click” on the first and then “SHIFT+click” on the final selection. On the status bar there is the name of the page style “Calendar”, double click on the name will open a dialog box where you can specify a different format of printed pages. Normally, this is A4 format page in landscape orientation.

Changing the language of the calendar.

Calendar can be printed in any language available in the LibreOffice software. You will need to change the default language package to another. After such a change, you have to re-enter the year. Changing the default language and the change of interface does not affect the established days highlighted. The sheet “Home” can be determined by way of presenting the names of days and the names of months on the pages of the monthly calendar. From the drop-down list, select the desired way.

If you liked the project, you can support the author via PayPal.

The support will be fulfilled via the online payment service PayPal. You do not need to have an account on this site. Just click next drawing. When you have your PayPal account, you can use the link . link.

Thank you!

Help information for users of Apache OpenOffice and LibreOffice system MacOS

Operating System Windows / Linux MacOS operating system
Clicking the right mouse button Control + click
CTRL key (in the keyboard shortcuts) key ⌘
F5 Navigator Shift + ⌘ + F5
F11 Styles and Formatting ⌘ + T