I need to know when the mxd was saved for last time to added to the legend.I am using these interfaces and objects.
IMxDocument pMxDoc = myApp.Document as IMxDocument;
IDocumentInfo3 pinfo = pMxDoc as IDocumentInfo3;
object date = pinfo.datesaved
is there any way to convert this value 45112.565854 (it is just an example) to this format 'mm/dd/yyyy'
the value 45112.565854 is the one that I am getting back from this property. Thanks a lot.
In VBA the following code would convert to string:
Public Sub test() Dim v As Double Let v = 45112.565854 Debug.Print CDate(v) ' prints 05/07/2023 13:34:50 End Sub
Did you try using the object in the ITime interface?
ITime Interface
http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//0042000001sm000000