I try to get the integer portion, and then when I change it back to date format, the error appears again. As I did before, I have some of the date variable become 17589.4167, some are 17224, some are correctly as 20120321. So I use int(meetingdate) then this variable has only numbers like: 17224, 17589, and 20120321. Then when I use "format meetingdate date9." the error appears again. I figure the error is from the date like 20120321, when those dates are in the same column as the 17224 dates, I will have such error. So I divide the dateset into two parts, data1 with dates like 20120321, data2 with dates like 17224. Then when I change these numbers into dates, the separate date sets are error free. But when I try to merge them, the error appears. The attributes of dates in data1 are length:8 Format BEST12. informat: 12. So if I can find a correct date format for the date variable in data2, I can merge these two datasets together and solve the problem. Any suggestions? Thanks!
... View more