![]() Chapter Contents |
![]() Previous |
![]() Next |
| MONTHw. |
| Category: | Date and Time |
| Alignment: | right |
| Syntax | |
| Syntax Description | |
| Details | |
| Examples | |
| See Also |
Syntax |
| MONTHw. |
| Default: | 2 |
| Range: | 1-21 |
| Tip: | Use MONTH1. to obtain a hex value. |
| Details |
The MONTHw. format writes the month (01 through 12) of the year from a SAS date value.
| Examples |
The example table uses the input value of 15656, which is the SAS date value that corresponds to November 12, 2002.
| SAS Statements | Results |
|---|---|
----+----1 |
|
put date month.; |
11 |
| See Also |
| Format:
|
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.