Chapter Contents

Previous

Next
MDY

MDY



Returns a SAS date value from month, day, and year values

Category: Date and Time


Syntax
Arguments
Examples
See Also

Syntax

MDY(month,day,year)

Arguments

month
specifies a numeric expression that represents an integer from 1 through 12.

day
specifies a numeric expression that represents an integer from 1 through 31.

year
specifies a numeric expression that represents an integer identifying a specific year. Use the YEARCUTOFF system option to define the year range.


Examples

SAS Statements Result
m=8;
d=27;
y=90;
birthday=mdy(m,d,y);
put birthday= worddate.;
 



birthday=August 27, 1990


See Also

Functions:
DAY
MONTH
YEAR


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.