how to get ( 15 march 2011) and (15/03/2011) output using SQL
Use the following queries to get the data from database in the given format.
For (15 march 2011) format:
SELECT DATE_FORMAT(dob, '%d %M %Y') FROM patient;
For (15/03/2011) format:
SELECT DATE_FORMAT(dob, '%d/%m/%Y') FROM patient;
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.