You need to cast the input string to a timestamp using format1, then cast the timestamp to a string using format2. That's not what your code is currently doing
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum