I use dates in julia, then I convert them in days in the following fashion
# Convert a date to a number of days
date = Date(2023, 6, 7)
days = Dates.days(date)
println(days)
738678
I then look up the dates with other values to create an array that I want to export in excel. My issue is that dates are then in the julia format above (i.e. in actual number of dates)
Is there a way to convert days back into a date that I can use in excel?
Newer versions of excel use 1900 as a base year. I can do the difference in dates then and see. I was wondering if there’s a more immediate way to work with dates in julia. Coming from matlab I never did bother that much working with arrays of time which I could easily use in excel.