I do not know, but% b does not work when it is the leading field.
Listed below are all failures (give NA):
> as.Date("Jan/1947", format="%b/%Y") > as.Date("Jan 1947", format="%b %Y") > as.Date("jan1947", format="%b%Y") > as.Date("Jan1947", format="%b%Y")
then when you precede% b with% d, it works:
> as.Date("1Jan1947", format="%d%b%Y") > as.Date("29-Jan-1947", format="%d-%b-%Y") > as.Date("08/Aug/1947", format="%d/%b/%Y") > as.Date("22 Dec 1947", format="%d %b %Y")
Neilfws seems to have an incomplete answer. This also explains why giving only a year gives:
> as.Date("1947", format="%Y") [1] "1947-09-19"
source share