Change the Bar Date and Time Format
The time format (12 or 24 hour) can be specified in Settings:
The date format can be specified by selecting the appropriate region in Settings. A preview of the date format is provided, and logging back in is required for changes to take effect.
The date and time formats can also be explicitly set via Xresources. To do so, override the i3xrocks.date.format2 Xresource key. The format specification for date is simply the arguments that would be passed to the date command on the command line. For example, to print the year in 4 digits, specify +%Y.
For example the following line can be added to use the YYYY-MM-DD hh:mm format:
i3xrocks.date.format2: %Y-%m-%d %H:%M
The most useful formats that are supported are as follows:
%Yprints year asYYYY%yprints year asYY%mprints month asMM%dprints day asDD%Hprints hours in 24 hour format%Iprints hours in 12 hour format%Mprints minute asmm
For more details and placeholders, please look at date --help.