DraftSight AutoLisp - Get File's "Last Modified" Property

Hello all, I'm trying to sort a list of drawings based on when the files were last modified. I found a web source where a working script can modify the property, but I cannot seem to retrieve this property. I thought it might just be me missing something in my code, but the alternative solution has also failed to work for me.

Original source code: AutoDesk Forums

Requested coding improvement: Stack Overflow

The code below allows the user to select a file and returns the file's last modified date. Once the code has been loaded into DraftSight, type "TEST" into the command line to run the script. For me, the code throws an error whenever it tries to execute the "(vlax-get fob 'datelastmodified)" command.

Command: TEST
Test :
 Error: Invalid parameter.
(defun c:test (/ fnm mod rDate sDate )
    ;; Initializing and validating
    (setq fnm (getfiled "Select File" "" "" 16))
    (if fnm
        (setq mod (LM:filelastmodified fnm))
        (princ "\\n*Cancel*")
    );if
    (if mod
        (progn ;; True
            (setq rDate (rtos mod 2 15))
            (setq sDate (strcat "m=\\\$(edtime," rDate ",yyyy-mo-dd hh:mm:ss)"))
            (setq sDate (menucmd sDate))
            (princ (strcat "\\nLast modified: " sDate))
        );progn ; True
        (princ "\\nUnable to obtain last modified date.")
    );if
    (princ)
);c:test

(defun LM:filelastmodified (fnm / fob fso rtn)
    
    (setq fnm (findfile fnm))
    (setq fso (vlax-get-or-create-object "scripting.filesystemobject"))
    (if (and fnm fso)(progn
        (setq fob (vlax-invoke-method fso 'getfile fnm))
        (if fob (progn
            (setq temp fob);<-- Added in Update
(princ "\\nTest : ")(prin1 (vlax-get fob 'datelastmodified))(terpri);<-- Error: (vlax-get) 'datelastmodified and 'ModifyDate have failed             (setq  rtn (+ 2415019 (vlax-get fob 'datelastmodified)))             (vlax-release-object fob)         ));if<-progn         (vlax-release-object fso)     ));if<-progn     rtn );LM:filelastmodified

Update:

By adding "temp" to the code and doing an object dump, the property can be found, but the value isn't being copied with it. Hopefully, this helps.