Dear all,

I have two variables in my dataset namely "date of birth" "date of death" and would like to do survival analysis. First of all, I am not a statistician so bear with me please.

1st variable codebook:
Code:
    Type: Numeric daily date (int)

                 Range: [13880,21182]                 Units: 1
       Or equivalently: [01jan1998,29dec2017]         Units: days
         Unique values: 1,062                     Missing .: 0/1,174

                  Mean: 17165.3 = 30dec2006(+ 7 hours)
             Std. dev.:    2083
           Percentiles:       10%        25%        50%        75%        90%
                            14408      15411    17030.5      18864      20241
                        13jun1999  12mar2002  17aug2006  25aug2011  02jun2015


2nd variable codebook:
Code:
 Type: Numeric daily date (int)

                 Range: [13894,21239]                 Units: 1
       Or equivalently: [15jan1998,24feb2018]         Units: days
         Unique values: 180                       Missing .: 994/1,174

                  Mean: 17588.6 = 26feb2008(+ 13 hours)
             Std. dev.: 2006.76
           Percentiles:       10%        25%        50%        75%        90%
                          14964.5    15987.5    17325.5      19290    20459.5
                        20dec2000  09oct2003  08jun2007  24oct2012  06jan2016
I would like to make basic graphs with 95% CI and regression analysis table later on but I do not know how to make it happen. Any tips to convert the dates to practical variables (e.g., age in months or years) would be much appreciated. Also, I know how to run a multivariate regression based on OR but with survival data I am not sure which command should I go for.

Thanks in advance