About 50 results
Open links in new tab
  1. Calculate difference in days between SAS dates

    Feb 4, 2019 · For number of days between two SAS dates, you can just subtract one from the other. Behind the scenes, a SAS date is just a number (# of days since Jan. 1, 1960).

  2. Find number of days between two dates - SAS Communities

    Jun 10, 2023 · Solved: Hi All, I get dates in the IS8601da. format yymmdd10. and I need to find number of days, years, months into different variables. For example,

  3. How to calculate difference in days between two dates (given in SAS ...

    Jul 24, 2014 · In general, the difference between two SAS dates in days can most easily be calculated as duration=end_date - start_date. If you want to consider people who (in this case) are admitted …

  4. Use Retain to Determine Number of Days Between Dates

    Nov 11, 2025 · Good afternoon. I need a data step to determine the number of days between succeeding rows based on a group (see the example). I've tried to use RETAIN to achieve this, but I …

  5. Solved: difference between two dates - Days - SAS Communities

    Jul 22, 2022 · Solved: I want to get the difference between dischdate and notedate and grab the data with datediff between -3 and 3 days. How do I do this? proc

  6. Finding No of Days between two dates in SAS VA

    Jun 24, 2014 · Hi, How can I find the number of days between two given dates in SAS VA using existing dates in the table? say for ex find no of days between 12 April, 2014 - 23 June, 2014. I can use any …

  7. How to calculate days between 2 dates in separate rows and same group

    Jun 20, 2020 · Re: How to calculate days between 2 dates in separate rows and same group Posted 06-19-2020 10:46 PM (5495 views) | In reply to TheNovice

  8. Find Number of Days, Hours, and Minutes between Two Dates

    Aug 8, 2019 · I am trying to create a report that shows a list of subjects, their date/time of first dose, date/time of last dose, and the difference between the two date/times. I am supposed to report the …

  9. Solved: Difference between Two dates - SAS Communities

    Oct 1, 2016 · The output dataset should show the difference between two dates in days and months. The differene should include end date in calculation. The output dataset should show as below.

  10. calculate number of business days between 2 dates

    Jul 13, 2022 · The calculation of the number of business days between two dates would then reduce to a mere subtraction of two values retrieved from ALL_DATES instead of the " do date=date2 to date1; " …