Defining your own date and time formats

<< Click to Display Table of Contents >>

Defining your own date and time formats

For fields that return a date or time, you can specify the display format yourself if you do not like any of the predefined formats.

To do so, open the dialog box by clicking on the icon itself with the ribbon command Insert | Field field_insert_icon. In the dialog box, select the desired date or time field and then click on the New format button.

Tip: You can also change the display format via the ribbon command Insert | Date/time. For more information, see the next section.

The program displays another dialog box in which you can specify the display format by entering abbreviations. As you enter these abbreviations, TextMaker shows an example of the result.

Any combination of the following abbreviations can be used in your specified format (pay attention to case!):

Abbreviation

Meaning

Example

d

Day

2

dd

Day with two digits

02

ddd

Weekday abbreviated to three letters

Mon

dddd

Weekday spelled out

Monday

m

Month

4

mm

Month with two digits

04

mmm

Name of the month abbreviated to three letters

Apr

mmmm

Name of the month spelled out

April

yy

Year with two digits

18

yyyy

Year with four digits

2018

 

 

 

h

Hour (12-hour format)

8

hh

Hour with two digits (12-hour format)

08

H

Hour (24-hour format)

8

HH

Hour with two digits (24-hour format)

08

M

Minute

5

MM

Minute with two digits

05

S

Second

0

SS

Second with two digits

00

am

Show am/pm after the time

am

AM

Show AM/PM after the time

AM

In addition, you can use any separator (period, slash, etc.) in your entry.

Example: If you enter "dddd, d. mmmm yyyy" as the format in the Print date field, the date 4/26/2018 will be represented as "Wednesday, 26 April 2018".

Change language: You can also change the current language of a section of text in the status bar. If you format text in another language, month names, weekdays, and times in date and time fields will be automatically displayed in that language. For more information, see also Formatting text in another language.