Not quite sure what you want, but you may be interested in exploring the optional alignment argument. e.g.:
61 data _null_;
62 date1=intnx('month6','05may2022'd,1,'s');
63 date2=intnx('month6','05may2022'd,0,'s');
64 days=date1-date2;
65 format date1 date2 date9.;
66 put date1 date2 days;
67 run;
05NOV2022 05MAY2022 184
The Boston Area SAS Users Group is hosting
free webinars!
Next up:
Lisa Mendez & Richann Watson present Get Tipsy with Debugging Tips for SAS® Code: The After Party on Wednesday Jul 16.
Register now at
https://www.basug.org/events.