Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in MySQL only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
MySQL
Fetch only Date and Month from Date
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
naveenkongati
New Member
Join Date:
Oct 2008
Posts:
52
#1
Fetch only Date and Month from Date
Nov 11 '08, 03:06 AM
Hi,
How do we fetch only date and month from date column (Ex: 2008-11-10) in Mysql?
Thanks
luttkens
New Member
Join Date:
Jul 2007
Posts:
23
#2
Nov 11 '08, 06:24 AM
Take a look at the DATE_FORMAT function. In your case it would be something like
Code:
SELECT DATE_FORMAT(DateField, '%Y-%m-%d') FROM table
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment