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
iOS How to send SMS with iPhone
Restrictions If you could send an SMS within a program on the iPhone , you'll be able to write games that spam people in the backgrou...
IOS: Difference between atomic and non-atomic attributes
What do atomic and nonatomic mean in property declarations? @property ( nonatomic , retain ) UITextField * userName ; @property ( atomi...
Javascript: How to return response from asynchronous ajax call
The next piece of code tries to return the response fron an ajax asynchronous call but with this we can only get undefined values: functi...
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...
JavaScript closure inside loop example
When we want to bind a variable within an anonymous function unchanging value outside of the function, you can implement the following javas...
No comments:
Post a Comment