def get_reg_date(self, user_id):
with self.connection:
return self.cursor.execute("SELECT `date_registration` FROM `users` WHERE `user_id` = ?", (user_id,)).fetchall()
SELECT strftime('%d.%m.%Y', `date_registration`) AS `date_registration` FROM `users` WHERE `user_id` = ?