diff --git a/R/dates.R b/R/dates.R index 7185664..dd4ca8e 100644 --- a/R/dates.R +++ b/R/dates.R @@ -27,9 +27,9 @@ #' Consequently, we recommend not setting the day to a value after the 28. #' #' The [sql equivalent](https://docs.microsoft.com/en-us/sql/t-sql/functions/datepart-transact-sql) to `clump_month_date()` -#' is `CAST(convert(char(7), GETDATE(), 126) + '-15' AS date)`. +#' is `cast(convert(char(7), getdate(), 126) + '-15' as date)`. #' The [sql equivalent](https://blog.sqlauthority.com/2007/08/20/sql-server-find-monday-of-the-current-week/) to `clump_week_date()` -#' is `SELECT DATEADD(wk, DATEDIFF(wk,0,GETDATE()), 0)` +#' is `SELECT dateadd(wk, datediff(wk, 0, getdate()), 0)` #' #' @author Will Beasley #'