Convert date-likes to time index
date_to_index(x)
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")