I have problems with removing time and time zone information from a date object. I found the same question here already, but my starting position is slightly different. My date objects are imported from excel and look like
DateObject[{2008, 7, 3}, TimeObject[{0, 0, 0.}, TimeZone -> 2.], TimeZone -> 2.]
What I need is DateObject[{2008, 7, 3}]
, but I have no idea how I could get rid of all the rest. Does anybody know?
Thanks a lot!
InputForm
on eitherDateObject[{2008, 7, 3}, TimeObject[{0, 0, 0.}, TimeZone -> 2.], TimeZone -> 2.]
orDateObject[{2008, 7, 3}]
), so it isn't clear what it is you want to do with yourDateObject
. That being said, have a look atDayRound
. $\endgroup$