Accessing dynamic text's DateSaved Document property as text

Discussion created by Me2 on Dec 6, 2011
Latest reply on Dec 7, 2011 by Neil
I need to programmatically access the text displayed by the dynamic text Document DateSaved property.

I believe ArcGIS gets this information using IDocumentInfo2.DateSaved. However, the latter returns an Object and not an ITimeInstant or ITime as I would have expected. Furthermore, there is no documentation on how to handle this "Object".

How does one turn the Object into the text string that ArcMap displays in dynamic text elements? I wasn't able to cast the returned Object to ITimeInstant or ITime, or to set it as a Date. The object seems to be a Double. I use VB.NET.