Dates should be able to be passed in the same way.
library(tidyhydat)
hy_daily_flows(station_number = "08HA001", start_date = "2025-01-01", end_date = "2025-12-31")
#> Queried from version of HYDAT released on 2026-04-17
#> Observations: 365
#> Measurement flags: 3
#> Parameter(s): Flow
#> Date range: 2025-01-01 to 2025-12-31
#> Station(s) returned: 1
#> Stations requested but not returned:
#> All stations returned.
#> # A tibble: 365 × 5
#> STATION_NUMBER Date Parameter Value Symbol
#> <chr> <date> <chr> <dbl> <chr>
#> 1 08HA001 2025-01-01 Flow 25.2 <NA>
#> 2 08HA001 2025-01-02 Flow 20.7 <NA>
#> 3 08HA001 2025-01-03 Flow 19.2 <NA>
#> 4 08HA001 2025-01-04 Flow 21.1 <NA>
#> 5 08HA001 2025-01-05 Flow 36.4 <NA>
#> 6 08HA001 2025-01-06 Flow 32.9 <NA>
#> 7 08HA001 2025-01-07 Flow 25.7 <NA>
#> 8 08HA001 2025-01-08 Flow 21.3 <NA>
#> 9 08HA001 2025-01-09 Flow 18.5 <NA>
#> 10 08HA001 2025-01-10 Flow 18.4 <NA>
#> # ℹ 355 more rows
realtime_ws(station_number = "08HA001", start_date = "2025-01-01", end_date = "2025-12-31")
#> Error:
#> ! Invalid date format. start_date need to be in either YYYY-MM-DD or YYYY-MM-DD HH:MM:SS formats
Created on 2026-06-11 with reprex v2.1.1
Dates should be able to be passed in the same way.
Created on 2026-06-11 with reprex v2.1.1