How to format dates without spaces r

28 views Asked by At

I can do this

strptime("20150615",format="%Y%m%d")

But this won't work.

strptime("194207","%Y%m") [1] NA

Whats is going on here?

Edit

For now doing this but so silly.

strptime(paste("194207","01"),"%Y%m%d")

0

There are 0 answers