I am reading in some numbers from excel that are the numeric version of a date. Excel displays 42094 as 3/31/15 (or some variant depending how the Date is structured. as.Date(42094,origin = "1899-12-30") produces "2015-03-31". The choice of origin has to do with Microsoft misunderstanding about leap years. These two lines of code
temp <- as.Date(42094,origin = "1899-12-30")
as.POSIXct(temp, origin = "1899-12-30")
produce
"1899-12-30 04:41:34 MST"
With as.POSIXct(temp, origin = "1900-1-1") the result is "2015-03-30 18:00:00 MDT"
Now what I want is
"2015-03-31 MDT"
or something similar