• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Valued Contributor
    Posts: 60
    Registered: ‎01-23-2009

    Date

    94 Views, 2 Replies
    07-17-2012 11:35 PM
    Dear all, How can i Retrieve today date through Lisp. STM
    Please use plain text.
    *Expert Elite*
    Hallex
    Posts: 1,331
    Registered: ‎10-08-2008

    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
    Please use plain text.
    *Pro
    scot-65
    Posts: 1,927
    Registered: ‎12-11-2003

    Re: Date

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

    (fix (getvar 'CDATE))

    Convert to string and pull apart using SUBSTR.

    Please use plain text.