By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,483 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,483 IT Pros & Developers. It's quick & easy.

Fetch only Date and Month from Date

P: 52
How do we fetch only date and month from date column (Ex: 2008-11-10) in Mysql?

Nov 11 '08 #1
Share this Question
Share on Google+
1 Reply

P: 23
Take a look at the DATE_FORMAT function. In your case it would be something like

Expand|Select|Wrap|Line Numbers
  1. SELECT DATE_FORMAT(DateField, '%Y-%m-%d') FROM table
Nov 11 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.