IupCalendar
Creates a month calendar interface element, where the user can select a date.
Creation
Ihandle* IupCalendar(void);
Returns: the identifier of the created element, or NULL if an error occurs.
Attributes
TODAY (read-only): Returns the date corresponding to today in VALUE format.
VALUE: the current date always in the format "year/month/day" ("%d/%d/%d" in C). Can be set to "TODAY". Default value is the today date.
WEEKNUMBERS: Shows the number of the week along the year. Default: NO. Not supported in WinUI, macOS, EFL, Android and iOS.
Callbacks
VALUECHANGED_CB: Called after the value was interactively changed by the user.
int function(Ihandle *ih);
ih: identifier of the element that activated the event.
MAP_CB, UNMAP_CB, DESTROY_CB, GETFOCUS_CB, KILLFOCUS_CB, ENTERWINDOW_CB, LEAVEWINDOW_CB, K_ANY, HELP_CB: All common callbacks are supported.
Notes
In GTK 2 and GTK 3, the calendar grid stretches only horizontally; its rows keep their natural height.
Examples
| GTK | Qt | Win32 | macOS |
![]() |
![]() |
![]() |
![]() |



