I have a DateTimeSeries and I can pull dates out at will, no problem there. I also have a DateTime 'variable' that I have set to the Expiration of a futures contract. I would have thought I could use "Instruments[0].Expiry, but that seem to only give me the first day of the expiration month as opposed to the actual expiration day, but I guess it doesn't. That's OK though since I have got that part fixed too. So, I've got two dates........
....all I want to do it to find out how many days there are remaining, at any given day from say, myDateTimeSeries[0] to myContractExpiry (in the future)
Both dates are in the proper format as opposed to me trying to use a hack-up like ToDay() method which I first tried but found out why later that we just shouldn't go there :-)
Why can't I just use math operators?!!! Is it to0 tough to just make Date1-Date2 'in days'? I'm sure that would be a hell of a lot of help and make it 99% easier for everyone!
I feel I'm close but so far, nada.
Comment