Hi
I have two sets of dates in my dataset, but they are importing as different types.
"NamesDate" shows as "1/2/2013" but when I select the cell in the data editor, it appears as "01jan2013".
"EventDate" shows as 6/23/2014 and shows as the same when selected.


I have tried changing the format, but it puts "00/2/2013"
I am trying to run the code below but am met with "type mismatch" error.
I have two sets of dates in my dataset, but they are importing as different types.
"NamesDate" shows as "1/2/2013" but when I select the cell in the data editor, it appears as "01jan2013".
"EventDate" shows as 6/23/2014 and shows as the same when selected.
I have tried changing the format, but it puts "00/2/2013"
I am trying to run the code below but am met with "type mismatch" error.
Code:
by CompanyID: gen target=datenum if NamesDate == EventDate

Comment