> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/user/lastactivedate-get.md).

# lastActiveDate {get}

```lua
return function()
    local app = getApp();
    
    local user = app.getUserFromData('clonzeh');
    if user == nil then
        log('user does not exist!');
        return;
    end
    
    -- string formatted
    log(user.secondsSinceLastActive); --the last date this avatar was spawned 
end
```
