> lubridate::dmy("2022-03-21") + lubridate::days(7)
[1] NA
Warning message:
All formats failed to parse. No formats found.
>
> anytime::anydate("2022-03-21") + 7
[1] "2022-03-28"
>
Always happy to help another #rstats user 馃槈
饾殟饾殩饾殺("饾煾饾煻饾煾饾煾-饾煻饾煿-饾煾饾煼") + 饾殟饾殜饾殺饾殰(饾熃)
That's right, for folks planning to submit your talk for consideration at 饾殯饾殰饾殱饾殲饾殟饾殥饾殬::饾殞饾殬饾殫饾殢(饾煾饾煻饾煾饾煾), we鈥檙e extending the deadline to March 28.
#rstudioconf #rstudioconf2022
Mar 19, 2022 路 6:26 PM UTC
3
6
59
Thanks all: I am (of course) aware of `ymd()`, the point of the tweet was that `anydate()` avoids all this automagically.
Plus, as @shabbychef reminded us, base #Rstats was there first (for this value) as `as.Date("2022-03-21") + 7` also works. Peace out.
1
1
4
