Informats for NLS |
Category: | Date and Time |
Syntax | |
Syntax Description | |
Details | |
Examples | |
See Also |
Syntax |
MINGUOw. |
specifies the width of the input field.
Default: | 6 |
Range: | 6-10 |
Details |
The general form of a Taiwanese date is yyyymmdd:
is an integer that represents the year.
is an integer from 01 through 12 that represents the month.
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.
Examples |
The following examples use different dates for input values.
input date minguo10.; put date date9.;
Values | Results |
---|---|
|
----+----1----+ |
49/01/01 |
01JAN1960 |
891215 |
15DEC2000 |
103-01-01 |
01JAN2014 |
See Also |
Formats: | |||
Informats:
|
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.