There are many functions that appear in both PHP and MySQL, for example, date(), substr() ... etc. If I want to get the date from the database with formatted style. Which one will be better, get the data from database and format it using PHP, or get and format the data in MySQL query? Thanks ...