Calendar Dialog
Use the calendar option to create a calendar dialog. Zenity returns the selected date to standard output. If no date is specified, the dialog uses the current date.
The calendar dialog supports the following options
option
discription
text
Specifies the text that is displayed in the calendar dialog.
day
Specifies the day that is selected in the calendar dialog. day must be a number between 1 and 31 inclusive.
month
Specifies the month that is selected in the calendar dialog. month must be a number between 1 and 12 inclusive.
year
Specifies the year that is selected in the calendar dialog.
date-format
Specifies the format that is returned from the calendar dialog after date selection. The default format depends on your locale. format must be a format that is acceptable to the strftime function, for example %A %d/%m/%y. (not supported yet.coming soon.
The following example script shows how to create a calendar dialog:
Figure 1 Calendar Dialog Example
Last updated