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 PHP only
Search
Advanced Search
Forums
Product Launch
Updates
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
Get only date from mysql datetime column
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
ghjk
Contributor
Join Date:
Jan 2008
Posts:
250
#1
Get only date from mysql datetime column
Apr 9 '08, 07:02 AM
My mysql database has datetime field and i want to get only date. how can i do that?
code green
Recognized Expert
Top Contributor
Join Date:
Mar 2007
Posts:
1726
#2
Apr 9 '08, 08:13 AM
Code:
SELECT CAST(`datetime_field` AS DATE) AS dateonly FROM etc...
Comment
Post
Cancel
ghjk
Contributor
Join Date:
Jan 2008
Posts:
250
#3
Apr 9 '08, 08:33 AM
Originally posted by
code green
Code:
SELECT CAST(`datetime_field` AS DATE) AS dateonly FROM etc...
Thanks. It is working !
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment