Menu
Home
Recent Posts
Convert date format yyyy-mm-dd to dd-mm-yyyy
6:40 AM
0
Share
Use
strtotime()
and
date()
:
$originalDate
=
"2010-03-21"
;
$newDate
=
date
(
"d-m-Y"
,
strtotime
(
$originalDate
));
(see
strtotime
and
date
docs on the PHP site).
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Development and programming answers
Search articles
Popular Posts
PHP: Curly braces strings usage
They're used to escape variable expressions. From Strings : Complex (curly) syntax This isn't called complex because the syntax i...
CouchDB vs MongoDB
After posting about Scott Motte’s comparison of MongoDB and CouchDB , I thought there should be some more informative sources out there, so ...
iOS: performSelector may cause a leak because its selector is unknown
Here's what I'm doing: [ _controller performSelector : NSSelectorFromString (@ "someMethod" )]; The solution for this e...
Example: jQuery AJAX POST with PHP
Basic usage of .ajax would look something like this: HTML : <form id = "foo" > <label for = "bar" ...
How to: Translate SQL to MongoDB MapReduce
I keep hearing people complaining that MapReduce is not as easy as SQL. But there are others saying SQL is not easy to grok. I’ll keep mysel...
No comments:
Post a Comment