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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 608 views
  • 0 likes
  • 2 in conversation