How to Display Date on a Separate Line
This topic describes how to configure World Clock
to show the date on a separate line. For example, you can have a taskbar clock in two lines as on the picture below. Here, the GMT clock is shown in one line, but the local time has two lines, one for time, another for the current date.
World Clock in taskbar with local time in two lines
How to Configure the Date on a New Line
To change the date format presentation, open Preferences
, and navigate to the Time and date display options
for your clock. Note that there may be multiple Time and date display options pages in Preferences, one for each clock. You need to open the right one, the one under your clock node.
World Clock Preferences - Time and Date display options page
Once you are on the Time and date display options
page, you have two options:
- Use a built-in date formatter with a new line symbol ("\n") in it.
- Type in your own date formatter into the Date field.
Use a Preconfigured Date Formatter with "\n"
Built in date formatters on the Time and date display options page
As you can see from the above picture, there are two built in date formatters that contain a new line symbol:
- \ndd.MM.yyyy - means "use a new line when possible, then show a date like 02.06.2013".
An example of a two-line clock display with "\ndd.MM.yyyy" date formatter
- dddd\nM/dd/yy - here the "\n" is in the middle. This formatter means "show weekday, then use a new line when possible, then show a date like 6/02/13".
An example of a three-line clock display with "dddd\nM/dd/yy" date formatter
You might be wondering why in the last example there are 3 lines on the Local time
clock instead of two. It happens because World Clock tries to display the weekday on a separate line automatically. So, the formatter dddd\nM/dd/yy is actually equivalent to \ndddd\nM/dd/yy - meaning that it tries to display 3 lines if there is enough room.
Type in a Custom Date Formatter with "\n"
World Clock allows you to type in a custom date formatter instead of built in formatters. Just type it into the Date field. Use the "\n"
for a separate line.
In other words, to display the date on a separate line add "\n" in the date formatting where you wish to place the line break. For example, instead of "d MMM"
type in "\nd MMM"
. The "\n" here represents a new line.
An example of taskbar clock with custom date formatter "\nd MMM"
What Happens when Taskbar Is Too Small
The new line formatter "\n"
for dates in World Clock works only when there is enough vertical space in taskbar for an additional line. In a situation when there is not enough room for additional lines, World Clock ignores the \n formatter.
World Clock ignores the \n formatter when there is not enough vertical space
In the example above, the dddd\nM/dd/yy built in formatter was used for Local time
. Internally, this formatter means that the clock should be displayed in 3 lines (label + time, weekday on a separate line, and date on yet another line). However, the taskbar height in this case is too small and cannot accommodate 3 lines. As a result, everything defaults to one line of information.
You can adjust the height of taskbar by unlocking it, and then dragging and dropping the taskbar border.
World Clock FAQ