Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Active Directory user.lastLogon

Hello,   I am trying to convert the active directory user.lastlogon and user.lastlogontimestamp to readable date and times.    The command below which I found on the Internet does not appear to be ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    Try the following code:

     

    Last Logon = IF( AD_user[user.lastLogonTimestamp] > 0, AD_user[user.lastLogonTimestamp] / 864000000000 - 109205, DATE(2000,1,1) )

     

    Make sure you assign the correct data type and that the default summarization is set to don't summarize. You can select the desired format.