Date and Time Formats

Jarte Help       
Contents   |    Search   |    Support   |    Jarte Home

 

Jarte's Insert Date and Time formats the date and time inserted into a document according to the conventions of your geographic locale. However, advanced settings Long Date Format (F5 key), Short Date Format (Shift+F5 key), Day Date Format, and Time Format can be used to control the format of the date and time. These four settings are associated with the four date and time menu selections of the Insert Date and Time feature. Note that settings Long Date format and Short Date Format are used to format the date in the header and footer line designer as well. The value of each setting is a string that describes the format according to the table shown below.

These examples...

Long Date Format=mmmm d, yyyy

Short Date Format=m/d/yy

Day Date Format=ddd, mmm d, yyyy

Time Format=hh:mm:ss AM/PM

...produce dates in the following formats respectively...

July 12, 2007

7/12/07

Thu, Jul 12, 2007

10:23 PM

The settings can be returned to their default values by leaving them blank. For example:

Short Date Format=

The following table details the specifiers that can be used in the date and time format values:

 

Specifier

Displays

d

Displays the day as a number without a leading zero (1-31).

dd

Displays the day as a number with a leading zero (01-31).

ddd

Displays the day as an abbreviation (Sun-Sat).

dddd

Displays the day as a full name (Sunday-Saturday).

m

Displays the month as a number without a leading zero (1-12). If the m specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.

mm

Displays the month as a number with a leading zero (01-12). If the mm specifier immediately follows an h or hh specifier, the minute rather than the month is displayed.

mmm

Displays the month as an abbreviation (Jan-Dec).

mmmm

Displays the month as a full name (January-December).

yy

Displays the year as a two-digit number (00-99).

yyyy

Displays the year as a four-digit number (0000-9999).

h

Displays the hour without a leading zero (0-23).

hh

Displays the hour with a leading zero (00-23).

n

Displays the minute without a leading zero (0-59).

nn

Displays the minute with a leading zero (00-59).

s

Displays the second without a leading zero (0-59).

ss

Displays the second with a leading zero (00-59).

am/pm

Uses the 12-hour clock for the preceding h or hh specifier, and displays 'am' for any hour before noon, and 'pm' for any hour after noon. The am/pm specifier can use lower, upper, or mixed case, and the result is displayed accordingly.

a/p

Uses the 12-hour clock for the preceding h or hh specifier, and displays 'a' for any hour before noon, and 'p' for any hour after noon. The a/p specifier can use lower, upper, or mixed case, and the result is displayed accordingly.

/

Displays the date separator character.

:

Displays the time separator character.

'xx'/"xx"

Characters enclosed in single or double quotes are displayed as is, and do not affect formatting.

 

How to Change an Advanced Setting

See Advanced Settings for details on how to find and change the value of a Jarte advanced setting.







Carolina Road Software Carolina Road Software

Copyright © 2001-2011 Carolina Road Software L.L.C. All rights reserved.