MINGUOw. Format

Writes date values as Taiwanese dates in the form yyyymmdd.
Category: Date and Time
Alignment: left

Syntax

MINGUOw.

Syntax Description

w
specifies the width of the output field.
Default:8
Range:1–10

Details

The MINGUOw. format writes SAS date values in the form yyyymmdd, where
yyyy
is an integer that represents the year.
mm
is an integer that represents the month.
dd
is an integer 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 appear as a series of asterisks. Year values do not roll around after 100 years; instead, they continue to increase.

Example

The example table uses the following input values:
  • 12054 is the SAS date value that corresponds to January 1, 1993.
  • 18993 is the SAS date value that corresponds to January 1, 2012.
  • -20088 is the SAS date value that corresponds to January 1, 1905.
Statements
Results
x=put(12054,minguo7.);
put x=; 
x=820101
x=put(12054,minguo9.);
put x=; 
x=82/01/01
x=put(12054,minguo10.);
put x=;
x=0082/01/01
x=put(18993,minguo7.);
put x=;
x=1000101
x=put(18993,minguo9.);
put x=;
x=100/01/01
x=put(18993,minguo10.);
put x=;
x=0101/01/01
x=put(-20088,minguo7.);
put x=; 
**********
x=put(-20088,minguo9.);
put x=; 
**********
x=put(-20088,minguo10.);
put x=;
**********

See Also

Informat: