Convert date-likes to time index

date_to_index(x)

Arguments

x

The Date or Y-m-d string to convert

Value

The numeric representation of the date that can be used with ts

Examples

if (FALSE) date_to_index("2020-07-01")