24.06.2021, 10:01
Use this:
Code:
date = '2021-06-23T20:12:16'
year, month, day, hour, min, sec = date:match('(%d+)-(%d+)-(%d+)T(%d+):(%d+):(%d+)')
res = string.format('%s-%s-%s, %s:%s:%s.', day, month, year, hour, min, sec)
log(res)