Home Sql Sqldate Mysql Date Format



Mysql Date Format
Posted on: April 3, 2006 at 12:00 AM
The different types of time data in MySQL :TIME, DATE TIME and TIMESTAMP. The Tutorial helps you to write the Date Format in SQL Query.

Mysql Date Format

     

The different types of time data in MySQL :TIME, DATE TIME and TIMESTAMP. The Tutorial helps you to write the Date Format in SQL Query. 

date_format(now( ),'%e %M%W%Y') : This Query is used to display the current date, month, week and year. 

Query for formatting currentdate:-

mysql> select date_format(now(),'%e %M %W %Y');

Output:-

+----------------------------------+
| date_format(now(),'%e %M %W %Y') |
+----------------------------------+
| 20 December Saturday 2008 |
+----------------------------------+
1 row in set (0.00 sec)

Related Tags for Mysql Date Format:


More Tutorials from this section

Ask Questions?    Discuss: Mysql Date Format  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

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.