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
how to pick date from datetime format
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
chand basha
New Member
Join Date:
Aug 2011
Posts:
12
#1
how to pick date from datetime format
Aug 29 '11, 01:18 PM
hi,
how to take only date from 2011-08-24 16:12 this timestamp.
paulrajj
New Member
Join Date:
Sep 2008
Posts:
47
#2
Aug 29 '11, 02:23 PM
Using
strtotime
and
date
functions,
Code:
$d = "2011-08-24 16:12"; $dat = date("Y-m-d", strtotime($d));
Comment
Post
Cancel
chand basha
New Member
Join Date:
Aug 2011
Posts:
12
#3
Aug 30 '11, 04:58 AM
thanks for reply but my date is coming with html tags also so it is not taking.....i have taken substr and explode it and i now getting only the date....
ok problem solved.....
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment