Help using Base SAS procedures

simple question for SAS date format

Reply
Frequent Contributor
Posts: 80

simple question for SAS date format


Hello,

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

Thanks in advance.

Trusted Advisor
Posts: 1,615

Re: simple question for SAS date format

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

Super User
Super User
Posts: 7,401

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
  • 258 views
  • 6 likes
  • 3 in conversation