Delete profile in ppp secret last logged out older than 1 Month

Hi guys, need a help.
I need a script for deleting older profile in /ppp secret for clients that haven’t connected for one month.
I dont understand how to processing “latest logged out” value, it is not simple:
put [ppp secret get [find name=mgmt] last-logged-out]
aug/16/2019 12:10:58 <-How i can process this output for verify if it is older than 1 month?

Thanks

Should be doable if logg store data as long as one month.

See here on how to get an idea on data calculation.
http://forum.mikrotik.com/t/calculate-the-difference-between-two-dates/107120/1

Hi thanks for your answer, i tried the script on page but it seems can’t process output of /ppp secret get last-logged-out very well, so i modified this with my needs:
https://wiki.mikrotik.com/wiki/Expire_users_a_after_number_of_days.

Hi, can I ask you to please post a script to delete ppp secret older than 30 days? I need to solve the same problem.