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

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

Anonymous
Not applicable
1,782 Views
5 Replies
Message 1 of 6

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

Anonymous
Not applicable

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.

0 Likes
Accepted solutions (1)
1,783 Views
5 Replies
Replies (5)
Message 2 of 6

kerry_w_brown
Advisor
Advisor

 

 

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


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 3 of 6

Keith.Brown
Advisor
Advisor

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

0 Likes
Message 4 of 6

kerry_w_brown
Advisor
Advisor
Accepted solution

 

Something to play with :

 

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

 

tdcreate.PNG


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
Message 5 of 6

Anonymous
Not applicable

yes. this is it.

 

thanks

0 Likes
Message 6 of 6

Anonymous
Not applicable

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

0 Likes