THEME COLOR
I am trying to convert a date from yyyy-mm-dd to dd-mm-yyyy (but not in SQL); however I don't know how the date function requires a timestamp, and I can't get a timestamp from this string.
How is this possible?
Use Can Use strtotime() and date():
strtotime()
date()
$originalDate = "2010-03-21"; $newDate = date("d-m-Y", strtotime($originalDate));
(see strtotime and date docs on the PHP site).
Post Your Answers
Warning (2): Illegal offset type [CORE\Cake\Model\Model.php, line 3054]
Substring to take all letters after the 4th character
How to Increase Import Size Limit in phpMyAdmin using Xampp server?
INSERT IGNORE” vs “INSERT … ON DUPLICATE KEY UPDATE
Why shouldn't I use mysql_* functions in PHP?
How can I get a date after 15 days/1 month in PHP?
Jquery focus out after pressing enter key
Dynamic Select Option Menu Using Ajax And PHP.
List the four developer practices of XP.
How to copy mysql database from one server to other server using command prompt
What is arrays? How many types of Array in Programming Language and How is declared. Explain with Example
how to Convert Array to Object with stdClass?
विश्व में सर्वाधिक बड़ा, छोटा, लम्बा एवं ऊँचा की सूची क्या है ..?
How to Install Pear on Windows using WAMP
Adding 1 hour to time variable
Different between HTML and PHP ?
What is the best collation to use for MySQL (with PHP)
लद्दाख जेसे ठंढे रेगिस्तानी क्षेत्र मे पर्यटन की क्या संभावनाए है?
How to Validate Password Strength in PHP
Get a substring between two strings in PHP
PHP set cookie lifetime
How to Upload PHP Project from Local System Wampserver to linux Server and run
Partially hide email address in PHP
how to create a login page with PHP and MySQL.
Bootstrap contact form background only around form
How to create ZIP archives using PHP and download
Write a program that reads a string and then prints a diamond shaped array based on the characters of the string.
सांस्कृतिक पर्यावरण के तहत कौन - कौन सी बाते आती है?
How to calculate age (in years) based on Date of Birth and getDate()
Your Answer