I've never had issue with this before but am stuck with this dataset. Just trying to format the date variables included here. When I do so, the years come out as '2079, 2080, etc...' I have double checked in excel and they should correspond to 2019, 2020 and 2021.
Here are the data:
Here is the code I am using:
format prep_start_date %tdnn/dd/ccyy
I also tried format prep_start_date %td
Thanks in advance and I apologize for the elementary question!
Here are the data:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input long(prep_start_date prep_end_date past_initial_date) float date_of_birth long test_date 43759 43812 43755 35360.5 43755 43759 43812 43755 37034 43755 43759 43812 43755 35043 43755 43759 43812 43755 36916 43755 43759 43812 43755 36530 43755 43759 43812 43755 33432 43755 43759 43812 43755 36433 43755 43759 43812 43755 35779 43755 43759 43812 43755 34161 43755 43759 43812 43755 36004 43755 43759 43812 43755 34721 43755 43759 43812 43755 33182 43755 43759 43812 43755 36501 43755 43759 43812 43755 34333 43755 43759 43812 43755 32120 43755 43759 43812 43755 36334 43755 43759 43812 43755 37161 43755 43759 43812 43755 34864 43755 43759 43812 43755 33571.5 43755 43759 43812 43755 36255 43755 43759 43812 43755 36980 43755 43759 43812 43755 35853 43755 43759 43812 43755 34374 43755 43759 43812 43755 36833 43755 43759 43812 43755 35326 43755 43759 43812 43755 36175 43755 43759 43812 43755 36450 43755 43759 43812 43755 36824 43755 43759 43812 43755 36888 43755 43759 43812 43755 34381 43755 43759 43812 43755 35965 43755 43759 43812 43755 36309 43755 43759 43812 43755 35069 43755 43759 43812 43755 36567 43755 43759 43812 43755 37086 43755 43759 43812 43755 36927 43755 43759 43812 43755 35222 43755 43759 43812 43755 36840 43755 43759 43812 43755 36849 43755 43759 43812 43755 35860 43755 43759 43812 43755 36127 43755 43759 43812 43755 35655.5 43755 43759 43812 43755 33519 43755 43759 43812 43755 37085 43755 43759 43812 43755 35251.5 43755 43759 43812 43755 32750 43755 43759 43812 43755 34411 43755 43759 43812 43755 36870 43755 43759 43812 43755 36724.5 43755 43759 43812 43755 32454 43755 end
format prep_start_date %tdnn/dd/ccyy
I also tried format prep_start_date %td
Thanks in advance and I apologize for the elementary question!
Comment