is.na(strptime("19810329012000",format="%Y%m%d%H%M%S")) [1] TRUE
The problem was to do with daylight saving time. I need to specify a time zone as this time doesn't exist in my operating system's current time zone. I still think this is odd behaviour though! When you look at the missing object it doesn't look missing at all. Caroline _________________________________________________________________ Find the best and worst places on the planet [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.