Informats

DDMMYYw. Informat



Reads date values in the form ddmmyy or ddmmyyyy
Category: Date and Time

Syntax
Syntax Description
Details
Examples
See Also

Syntax

DDMMYYw.

Syntax Description

w

specifies the width of the input field.

Default: 6
Range: 6-32

Details

The date values must be in the form ddmmyy or ddmmyyyy, where

dd

is an integer from 01 through 31 that represents the day of the month.

mm

is an integer from 01 through 12 that represents the month.

yy or yyyy

is a two-digit or four-digit integer that represents the year.

You can place blanks and other special characters between day, month, and year values. However, if you use delimiters, place them between all the values. Blanks can also be placed before and after the date. Make sure the width of the input field allows space for blanks and special characters.

Note:   SAS interprets a two-digit year as belonging to the 100-year span that is defined by the YEARCUTOFF= system option.  [cautionend]


Examples

input calendar_date ddmmyy10.;

When the Data Line = ... The Result is ...
----+----1----+

160399
14319
16/03/99
14319
16 03 1999
14319


See Also

Formats:

DATEw. Format

DDMMYYw. Format

MMDDYYw. Format

YYMMDDw. Format

Function:

MDY Function

Informats:

DATEw. Informat

MMDDYYw. Informat

YYMMDDw. Informat

System Option:

YEARCUTOFF= System Option

space
Previous Page | Next Page | Top of Page