.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to change GetVariable("tdcreate") to date format

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
Amrit.shr
1443 Views, 5 Replies

how to change GetVariable("tdcreate") to date format

hi

i am useing vb.net 2010

        Dim AcadApp As Autodesk.AutoCAD.Interop.AcadApplication
        Dim acaddoc As Autodesk.AutoCAD.Interop.AcadDocument
        AcadApp = GetObject(, "Autocad.Application")
        acaddoc = AcadApp.ActiveDocument
        Dim DD As Double
        DD = acaddoc.GetVariable("tdcreate")

 

 

how to convert DD value to date and time format

 

any suggestion will be great.

 

Thanks in advance.

5 REPLIES 5
Message 2 of 6
kdub_nz
in reply to: Amrit.shr

 

 

http://lmgtfy.com/?q=julian+date+converter+C%23+VB.net


// Called Kerry in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

Message 3 of 6
Keith.Brown
in reply to: kdub_nz

Nice link Kerry.  Is amazing to me what type of websites people think up.

Message 4 of 6
kdub_nz
in reply to: Amrit.shr

 

Something to play with :

 

http://www.theswamp.org/index.php?topic=41190.msg463478#msg463478

 

tdcreate.PNG


// Called Kerry in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect.

class keyThumper<T> : Lazy<T>;      another  Swamper

Message 5 of 6
Amrit.shr
in reply to: kdub_nz

yes. this is it.

 

thanks

Message 6 of 6
thenndral
in reply to: Amrit.shr

Hi,

 

Thanks for awesome code.

 

Could you help me how to get time upto milliseconds.

 

In your example 03/12/2012 16:25:07:046.

 

How can I get milliseconds?

 

Thanks in advance,

thenndral

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost