DATE IN SAS - 3 | HOW TO FIND THE DIFFERENCE BETWEEN TWO DATES, TIMES AND DATETIMES | INTCK IN SAS

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 18

  • @deepakkumaar9665
    @deepakkumaar9665 3 роки тому +1

    Very simplified way of teaching. Thanks sir

  • @deepakkumaar8413
    @deepakkumaar8413 3 роки тому +1

    Thanks

  • @poojag4335
    @poojag4335 Рік тому +1

    Good good...

  • @chimeiliu2688
    @chimeiliu2688 2 роки тому

    Thank you for sharing! A quick additional question: how do I get absolute value of two dates ? Thank you!

    • @learnerea
      @learnerea  2 роки тому

      can you give some example of what exactly you are looking for then possiblye I'll be able to help

  • @natanaelfernandes2720
    @natanaelfernandes2720 2 роки тому +1

    Hi, I would like to know how could I calculate the time between purchases per client(same clientId) in a table with multiple clients.

    • @learnerea
      @learnerea  2 роки тому

      Check out this video which will give idea
      ua-cam.com/video/PQafLpOCj6g/v-deo.html
      u can use intck to calculate the difference

  • @prabhukumar9794
    @prabhukumar9794 2 роки тому +1

    wt abt if there are more observations in two variables

    • @learnerea
      @learnerea  Рік тому

      Thanks for giving it a watch, couldn't understand how is that a challenge, you can apply the same on that...
      intck('month', var1, var2)
      should work

  • @adityabatra8894
    @adityabatra8894 2 роки тому

    How to calculate the difference between two dates if day is not given ....ie may2017 and June 2022

  • @adityabatra8894
    @adityabatra8894 2 роки тому

    How to calculate the difference may-2017 and june-2022

    • @learnerea
      @learnerea  2 роки тому

      If this is as character variable, concatenate 01- at the beginning in both of the date then convert that in numeric and then find the difference using INTCK

  • @ajaykushwaha4233
    @ajaykushwaha4233 Рік тому +1

    Superb

  • @sunilsan8221
    @sunilsan8221 2 роки тому +1

    solve this
    we have visit, visit_date, and pt (patient) variables or fields are there
    pt visit visit_date
    10005 visit 1 01-jan-2020
    10005 visit 2 09-jan-2020
    10005 visit 3 11-jan-2020
    10005 visit 4 02-jan-2020
    10005 visit 5 03-jan-2020
    requirement is the date entered is wrong,
    the visit 1 date always smaller than visit 2 , same way visit 2 dae smaller than visit 3
    but here visit 4 date is date shd be gretaer than visit 3 ..
    how to find these type of patient information date information in our raw data