About 252,000 results
Open links in new tab
  1. How to calculate difference in days between two dates (given in …

    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) …

  2. 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 …

  3. 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).

  4. 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 …

  5. 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,

  6. 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

  7. 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 …

  8. SAS Code to Calculate difference between two dates in number of …

    Jun 13, 2016 · Getting a difference in the range of 20,000 when talking about a two year difference in dates make it look like you are taking the difference between two integers that …

  9. calculate number of business days between 2 dates

    Jul 13, 2022 · Hello There are 2 data sets: date set "Dates" include dates that are business days in specific country. Date set have includes 3 fields: customer_ID , date1, date2. The target is …

  10. Difference between two dates YYYYMMDD format date9.

    Feb 15, 2018 · Hello! I want to calculate the difference between two dates. The dates are displayed as YYYYMMDD and they are in format date9. I tried this; DATA m.want; SET …