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: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 612 views
  • 0 likes
  • 2 in conversation