79539797

Date: 2025-03-27 18:54:45
Score: 1
Natty:
Report link

Lubridate Could be useful for this:

curr_date <- lubridate::ymd('20250327')
lubridate::ceiling_date(lubridate::ceiling_date(curr_date, "month"), "month") - lubridate::days(1)
#"2025-04-30"

lubridate::ceiling_date(curr_date, "month")
#"2025-04-01"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: LeonFokou