diff --git a/src/calibre/gui2/preferences/create_custom_column.py b/src/calibre/gui2/preferences/create_custom_column.py
index 6c7c2bde62..e8ffffcb6e 100644
--- a/src/calibre/gui2/preferences/create_custom_column.py
+++ b/src/calibre/gui2/preferences/create_custom_column.py
@@ -403,7 +403,29 @@ class CreateCustomColumn(QDialog):
if col_type == 'datetime':
l, dl = _('&Format for dates'), _('Default: dd MMM yyyy.')
self.format_box.setToolTip(_(
- "
Date format. Use 1-4 \'d\'s for day, 1-4 \'M\'s for month, and 2 or 4 \'y\'s for year.
\n"
+ 'Date format.
'
+ 'The formatting codes are:'
+ '
'
+ '- d : the day as number without a leading zero (1 to 31)
'
+ '- dd : the day as number with a leading zero (01 to 31)
'
+ '- ddd : the abbreviated localized day name (e.g. "Mon" to "Sun").
'
+ '- dddd : the long localized day name (e.g. "Monday" to "Sunday").
'
+ '- M : the month as number without a leading zero (1 to 12).
'
+ '- MM : the month as number with a leading zero (01 to 12)
'
+ '- MMM : the abbreviated localized month name (e.g. "Jan" to "Dec").
'
+ '- MMMM : the long localized month name (e.g. "January" to "December").
'
+ '- yy : the year as two digit number (00 to 99).
'
+ '- yyyy : the year as four digit number.
'
+ '- h : the hours without a leading 0 (0 to 11 or 0 to 23, depending on am/pm)
'
+ '- hh : the hours with a leading 0 (00 to 11 or 00 to 23, depending on am/pm)
'
+ '- m : the minutes without a leading 0 (0 to 59)
'
+ '- mm : the minutes with a leading 0 (00 to 59)
'
+ '- s : the seconds without a leading 0 (0 to 59)
'
+ '- ss : the seconds with a leading 0 (00 to 59)
'
+ '- ap : use a 12-hour clock instead of a 24-hour clock, with "ap" replaced by the localized string for am or pm
'
+ '- AP : use a 12-hour clock instead of a 24-hour clock, with "AP" replaced by the localized string for AM or PM
'
+ '- iso : the date with time and timezone. Must be the only format present
'
+ '
'
"For example:\n"
"
\n"
"- ddd, d MMM yyyy gives Mon, 5 Jan 2010
- \n"