Visual LISP, AutoLISP and General Customization

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

Date

138 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 (132 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,128
Registered: ‎12-11-2003
Message 3 of 3 (100 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.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community