Ok I think I answered my own question - was simpler than I thought (must have just been missing something small):
| dbquery "DBNAME" "SELECT useraction FROM usertable" | eval useraction=strftime(useraction,"%Y-%d-%m") | stats count by useraction
Ok I think I answered my own question - was simpler than I thought (must have just been missing something small):
| dbquery "DBNAME" "SELECT useraction FROM usertable" | eval useraction=strftime(useraction,"%Y-%d-%m") | stats count by useraction