BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Smitha9
Fluorite | Level 6

hi,

I have date variable and want to increase to one day further.

date:

09/07/2020

03/10/2020

01/06/2020

08/09/2020

04/04/2020

 

I want the date increased to one day: 

date

09/08/2020

03/10/2020

01/07/2020

08/10/2020

04/05/2020

can I do this in sas?

1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Since SAS dates are counts of days, just add 1.

If these are not yet SAS dates, convert them three days before yesterday. Date- or time-related values should (IMO, must) always be stored as such.

View solution in original post

1 REPLY 1
Kurt_Bremser
Super User

Since SAS dates are counts of days, just add 1.

If these are not yet SAS dates, convert them three days before yesterday. Date- or time-related values should (IMO, must) always be stored as such.