powered by
Convert date-likes to time index
date_to_index(x)
The Date or Y-m-d string to convert
The numeric representation of the date that can be used with ts
# NOT RUN { date_to_index("2020-07-01") # }
Run the code above in your browser using DataLab