powered by
Functions converts dates to Excel General date series which might be useful when writing Excel files.
DATETOEXCELSERIES(date)
Convert R date type to Excel general date series, this might be helpful for Excel users.
In this example it returns the Excel's general date series equivalent of date 1st January of 2020. Function will always return numeric class.
# NOT RUN { DATETOEXCELSERIES(DATE(2020,1,1)) # }
Run the code above in your browser using DataLab