Help using Base SAS procedures

simple question for SAS date format

Reply
Frequent Contributor
Posts: 81

simple question for SAS date format


Hello,

Sorry, what's the format to show the fortnight of a date?.

Thanks in advance.

Respected Advisor
Posts: 3,059

Re: simple question for SAS date format

In the INTNX or INTCK function, you would use 'WEEK2' as the interval.

--
Paige Miller
Super User
Super User
Posts: 9,599

Re: simple question for SAS date format

Sorry, not sure I follow.  Fortnight is not a standard definition of time, hence there is no format for this.  It is an abstraction to represent a 2 week period.  If you provide some test data and require output then perhaps that would help, if you fortnight1 = Jan01-Jan14 then you would need to calculate that rather than format as there are leap years.

Ask a Question
Discussion stats
  • 2 replies
  • 313 views
  • 6 likes
  • 3 in conversation