Instead of 0, in the 5 digits date, maybe you have a space or something..

Does =LEN(a1) gives you 5 as result?