So if I have a date and want to go back to the day before (or many days before) and read out the year month and day as separate numbers how would I do it?
With some work, it could work for taking one day away, it’s not just Date3.Set(Date2.AsString()); as have to rearrange the string and convert month, but if I want to take 2 days away then the string output gives.
It seems that I can do what I want using TTimeStamp
root [0] TTimeStamp date(2018, 7, 1-60, 0,0,0, 0, kFALSE, 0)
(TTimeStamp &) @0x101ac77c8
root [1] date.GetDate()
(unsigned int) 20180502
root [2] //To get year
root [3] date.GetDate()/10000
(unsigned int) 2018
root [4] //To get month
root [5] (date.GetDate()-(date.GetDate()/1000010000))/100
(unsigned int) 5
root [6] //To get day
root [7] (date.GetDate()-(date.GetDate()/1000010000))-(date.GetDate()-(date.GetDate()/1000010000))/100100
(unsigned int) 2