Date code plz

Reply
Frequent Contributor
Posts: 86

Date code plz

From 'Today' how do i count every 15 days report?

Super User
Posts: 5,441

Re: Date code plz

Depends on how your data is structured, how the report will look like, and how the report intends to be generated. Please provide dome more information to get an adequate answer...

Data never sleeps
Frequent Contributor
Posts: 86

Re: Date code plz

Current system date and +15 days  Ex  (20/08/2012 - 04/09/2012) i want it like this.

Super Contributor
Posts: 349

Re: Date code plz

Hi,

Use INTNX  function.

Thanks,

Shiva

Super User
Super User
Posts: 7,079

Re: Date code plz

To get today's date you can use TODAY() function call.  SAS stores days as number of days since 1/1/1960 so to get 15 days into the future just add 15.

start=today();

stop=start + 15 ;

If you are dealing with datetime values or have other more complex date calculations then you should learn to use the INTNX() function.

Ask a Question
Discussion stats
  • 4 replies
  • 198 views
  • 1 like
  • 4 in conversation