Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Valued Contributor
thavasi1982
Posts: 75
Registered: ‎01-23-2009
Message 1 of 3 (141 Views)

Date

141 Views, 2 Replies
07-17-2012 11:35 PM
Dear all, How can i Retrieve today date through Lisp. STM
*Expert Elite*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 2 of 3 (135 Views)

Re: Date

07-18-2012 01:01 AM in reply to: thavasi1982

Try

(setq now (menucmd "M=$(edtime,$(getvar,date),M/D/YYYY)"))

 

~'J'~

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
*Expert Elite*
scot-65
Posts: 2,152
Registered: ‎12-11-2003
Message 3 of 3 (103 Views)

Re: Date

07-18-2012 04:05 PM in reply to: thavasi1982

(fix (getvar 'CDATE))

Convert to string and pull apart using SUBSTR.

Scot-65
Dyslexia is a permanent physical disability that cannot be seen.
Introverts is proof that there is indeed intelligent life on this planet.
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.