Date Format Specification

<< Click to Display Table of Contents >>

Navigation:  PDF-XChange Editor Plus V9 User Manual > Appendix >

Date Format Specification


 

editor.icon Date Format Specification

 


 

Several of the features in PDF-XChange Editor utilize an option to specify the date and/or time format to be used. These features use both predefined and custom dates/times. The following options are available:

 

Date Format Pictures

 

 

 

DATE FORMAT

 

 

DEFINITION

 

d

Day of the month as digits and without leading zeros for single-digit days.

dd

Day of the month as digits and with leading zeros for single-digit days.

ddd

Abbreviated day of the week. For example, "Mon" in English (United States).

dddd

Day of the week.

M

Month of the year as digits and without leading zeros for single-digit months.

MM

Month of the year as digits and with leading zeros for single-digit months.

MMM

Abbreviated month of the year, for example, "Nov" in English (United States).

MMMM

Month of the year, for example "November" for English (United States), and "Noviembre" for Spanish (Spain).

y

Year represented by only the last digit.

yy

Year represented by only the last two digits. A leading zero is added for single-digit years.

yyyy

Year represented by four or five digits, depending on the calendar used. Thai Buddhist and Korean calendars have five-digit years. The "yyyy" pattern shows five digits for these two calendars, and four digits for all other supported calendars. Calendars that have single-digit or two-digit years, such as for the Japanese Emperor era, are represented differently. A single-digit year is represented with a leading zero, for example, "03". A two-digit year is represented with two digits, for example, "13". No additional leading zeros are displayed.

yyyyy

Behaves identically to "yyyy".

g, gg

Period/era string. Note that these format pictures are ignored in date strings if there is no associated period/era string.

 

 

Please note that PDF-XChange Editor uses these elements to construct a null-terminated format picture string. If spaces are used to separate the elements in the input string then they will appear in the same location in the output string. The format types "d", "g", and "y" must be lowercase, and the letter "M" must be uppercase. PDF-XChange Editor uses single quotation marks to mark characters to display exactly as specified. If you need to display a single quotation mark in the output string then place two single quotation marks in a row in the input string. For example, 'abc''bar' is displayed as "abc'bar".

 

Hour, Minute, Second and Time Marker Format Pictures

 

 

DATE FORMAT

 

 

DEFINITION

 

h

Hour without leading zeros for single-digit hours (12-hour clock).

hh

Hour with leading zeros for single-digit hours (12-hour clock).

H

Hour without leading zeros for single-digit hours (24-hour clock).

HH

Hour with leading zeros for single-digit hours (24-hour clock).

m

Minute without leading zeros for single-digit minutes.

mm

Minute with leading zeros for single-digit minutes.

s

Second without leading zeros for single-digit seconds.

ss

Second with leading zeros for single-digit seconds.

t

One-character time marker string. Please note that this format is not recommended for use with some languages, such as Japanese (Japan).

tt

Multi-character time marker string.

Z

Time zone offset (from UTC) of current user.

 

Please note that PDF-XChange Editor uses these elements to construct a format picture string. Format pictures consist of a combination of one string of each of the hour, minute, second and time marker format types. The format types "m", "s", and "t" must be lowercase, and "h" must be lowercase to denote the 12-hour clock or uppercase ("H") to denote the 24-hour clock. PDF-XChange Editor uses single quotation marks to mark characters to display exactly as specified. If you need to display a single quotation mark in the output string then place two single quotation marks in a row in the input string. For example, 'abc''bar' is displayed as "abc'bar".