Date/Time-Related Codes

Updated February 2011

The following table shows the codes related to date and time fields. Note that determination of whether a date field will return the full century (CCYY), rather than just the year (YY), is determined by the larger of maxchrs and xmax.

Value

Description

(greater than) Convert date format.

d

Date input, today.

D

Date input.

|D

Defaults century to 19xx. Applies for date formats which allow user to enter only the YY. If not specified, century default is determined by the SBR=CCYY:## entry in miame.ini.

||D

Allows a date field to be filled with zeroes.

|d

Allow date shortcuts.

|h

HexaDecade Dates (2).

H

Hours field. Like $ but omits the "$" from the display.

|H

HexaDecade Dates (1).

j

Julian date format.

t

Time field.

th

Same as "t" but allows hh > 24. Not supported in the Windows date control, i.e. not compatible with TYPE "|G" (use "|g" instead).

||t

Same as t (time) but in GUI mode returns the time in 12-hour format rather than 24 hour format.

u

LDF-Related Codes.

U

European date.

||u

May be used with the D, d, t, and YN codes to ignore the current LDF settings and just use the (American) defaults. Without this, the LDF format was used, even in the absence of the "u" code.

 

History

2011 January, A-Shell 5.1.1200:  INFLD enhancement: date fields (except for the GUI date picker) can now use a "form" (TYPE "f", SETDEF set to something like "99/99/99"). This provides a sort of middle way between the Windows date picker control (which some people don't like), and a standard date field (in which the separators don't appear until after hitting Enter).