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
How to Validate Password Strength in PHP
मध्य काल के वैसे वस्त्रो की सूचि बनाइये जिसका व्यवहार हम आज भी करते है |
पूर्वी तट के नदी डेल्टाओं पर किस प्रकार की मृदा पाई जाती है | इस पर मुख्य रूप से कौन सी फसल उगाई जाती है ? What type of soil is found in the river deltas of the east coast? Which crop is mainly grown on it?
Add 'x' amount of hours to date
1 फुट में कितने इंच होते हैं? How many inches are there in 1 foot?
How Can You Choose a Reliable PHP Training Institute in Noida?
जैव संसाधन और अजैव संसाधन क्या होते है ? उदाहरण के साथ समझाए | What are biotic resources and abiotic resources? Explain with example.
भारत के उन राज्यों के नाम बताएँ जहाँ काली मृदा पाई जाती है | इस पर मुख्य रूप से कौन सी फसल उगाई जाती है ? Name the states of India where black soil is found. Which crop is mainly grown on it
Explain the features of XML. Explain XML declaration.
भारत के राष्ट्रपतियों की सूची
What is Server-Side Scripting or Back-End Web Development Technology ..?
1 फीट में कितने सेंटीमीटर होते हैं? How many centimeters are there in 1 foot?
Executing multiple SQL queries in one statement with PHP
What is mysqLi and PDO, how to use it...?
Simple Ajax Jquery script- How can I get information for each of the rows in the table?
How many types we show dates in PHP ie Formatting of date function in PHP . ?
Why shouldn't I use mysql_* functions in PHP?
रामनाथ कोविन्द की जीवनी | Ram Nath Kovind Biography in Hindi
how to connect to sql server database using php?
लैटेराइट मृदा (मिट्टी) किसे कहते है? इसके निर्माण और इसमें उगने वाली फसल के बारे में बताये ? What is laterite soil? Tell about its construction and the crops grown in it?
बंजर भूमि किसे कहते है? इसके क्या कारण है ? What is barren land? What is the reason for this?
php set session with cookies
How can I get a date after 15 days/1 month in PHP?
पहाड़ी क्षेत्रों में मृदा अपरदन की रोकथाम के लिए क्या कदम उठाने चाहिए | What steps should be taken to prevent soil erosion in hilly areas?
Different between mysql and mysqli ?
पृथ्वी के तापमान बढ़ने से जीवन के लिए खतरा बढ़ता है| कैसे?
लद्दाख मे विरल वनस्पति और विरल जनसँख्या क्यों है?
How many types of PHP Operators. Describe it
मृदा अपरदन क्या है? इसके क्या कारण है एवं रोकथाम के उपाय | What is soil erosion? What is its reason and preventive measures
किसने वर्ष 2035 से पेट्रोल-डीजल की नई वाहनों पर रोक के लिए समझौता किया है?
startsWith() and endsWith() functions in PHP
How to calculate the difference between two dates using PHP?
How to add 4 hours to time in PHP/MySQL
How to get first 5 characters from string
Using java.net.URLConnection to fire and handle HTTP requests
नदियों के जल को स्वच्छ बनाने के लिए आप क्या क्या कर सकते है ?
संसाधन किसे कहते है? ये कितने प्रकार के होते है ? What is resource? How many types are these?
भारत-फ्रांस एयरफोर्स का संयुक्त युद्धाभ्यास गरुड़ (Garud VII)
How Add Day , Month , Year in PHP Date
How to Create a table 2 to 20 using for loop in php
Extract a substring between two characters in a string PHP
PHP set cookie lifetime
Your Answer