Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
strtotime format
user29521
Programming language:
Whatever
2021-02-26 14:31:01
0
Q:
strtotime format
Marwa Kamal
Code:
Whatever
2021-02-26 14:34:16
$date = '25/05/2010'; $date = str_replace('/', '-', $date); echo date('Y-m-d', strtotime($date));
1
Tags
time
form
Related
format on str
strptime() many format
DATE_FORMAT(STR_TO_DATE
datetime.strttime() syntax
string %s format
strtime format
New to Communities?
Join the community