MINGUOw. Informat

Reads dates in Taiwanese format.
Category: Date and Time

Syntax

MINGUOw.

Syntax Description

w
specifies the width of the input field.
Default:6
Range:6–10

Details

The general form of a Taiwanese date is yyyymmdd:
yyyy
is an integer that represents the year.
mm
is an integer from 01 through 12 that represents the month.
dd
is an integer from 01 through 31 that represents the day of the month.
The Taiwanese calendar uses 1912 as the base year (01/01/01 is January 1, 1912). Dates before 1912 are not valid. Year values do not roll over after 100 years; instead, they continue to increase.
You can separate the year, month, and day values with any delimiters, such as blanks, slashes, or dashes, that are permitted by the YYMMDDw. informat. If delimiters are used, place them between all the values. If you omit delimiters, be sure to use a leading zero for days or months that have a value less than 10.

Example

The following examples use different dates for input values.
input date minguo10.;
put date date9.;
data _null_;
  input date minguo10.;
  put date date9.;
  datalines;
49/01/01
891215
03-01-01
;
Values
Results
----+----1----+
49/01/01
01JAN1960
891215
15DEC2000
103-01-01
01JAN2014

See Also

Format:
Informat:
YYMMDDw. Informat in SAS Formats and Informats: Reference