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
उत्प्रेरक से आप क्या समझते हैं ? What do you understand by catalyst?
प्रथम स्तर तथा द्वितीय स्तर के उपभोक्ताओं से क्या अभिप्राय होता है? What is meant by first level and second level consumers
पृथ्वी पर जल के वितरण को मानचित्र की सहायता से स्पस्ट कीजिये|
What is the best collation to use for MySQL (with PHP)
95% एथेनॉल को क्या कहते है ? What is 95% ethanol called?
न्यूलैण्ड के अष्टक नियम किसे कहते हैं ? What is Newland's octet law?
How do you use bcrypt for hashing passwords in PHP?
भारत में नए लेबर कोड्स (New Labour Codes) क्या है ? इसमें क्या बदलाब किया जाने की संभाबना है
क्रोमोसोम से क्या समझते हैं ? What do you understand by chromosome?
Why shouldn't I use mysql_* functions in PHP?
Time Ago Function PHP
एक धातु और एक अधातु का नाम लिखें जो वायु के सम्पर्क में आने पर जल उठते हैं ? Name a metal and a non-metal which burn when exposed to air?
How to Auto Post on Twitter with PHP
How Do I Talk to a Live Person at Microsoft?
लोकतांत्रिक सुधार की आवश्यकता क्यों पड़ती है ? Why is there a need for democratic reform.
How do I get through to Alitalia?
How to calculate age (in years) based on Date of Birth and getDate()
स्वेज नहर व पनामा नहर के बारे में बताये| Tell about Suez Canal and Panama Canal.
झारखंड में कुल कितने प्रमंडल है, इसका मुख्यालय कहाँ है इसके अंतर्गत कौन कौन से जिले आते है|
Convert number into xx.xx million format?
मानसून क्या है , यह कैसे बंनता है?. मानसून कितने प्रकार के है
php set session with cookies
PHP set cookie lifetime
क्या श्वसन एक ऊष्माक्षेपी अभिक्रिया है ? इसे स्पष्ट कीजिए। Is respiration an exothermic reaction? Explain it.
दोलन गति क्या है?
प्रकाश का वर्ण विक्षेपण किसे कहते हैं ? What is the dispersion of light called?
प्रकाश के परावर्तन के नियम क्या है ..?
Convert from one format to another in PHP
how to connect to sql server database using php?
Jquery focus out after pressing enter key
how to connecting mysql database in php
Describe the two general roles of an operating system, and elaborate why these roles are important ?
How do you parse and process HTML/XML in PHP?
विस्थापन और दूरी में क्या सम्बन्ध / अंतर है?
Internal Energy से सम्बंधित भौतिकी विज्ञानं में Thermodynamics का प्रथम नियम क्या है
किसी एक मंडल के न होने से क्या - क्या कठिनाइयाँ होगी| लिखिए|
विधुत बल्ब में निष्क्रिय गैस क्यों भरी जाती है ? Why is an inert gas filled in an electric bulb?
हरित क्रांति से आप क्या समझते है ? What do you understand by Green Revolution?
दर्पण क्या है , दर्पण कितने प्रकार के होते है?
count no of rows in cakephp base on email id
mysql_fetch_array() expects parameter 1 to be resource (or mysqli_result), boolean given
How to Increase Import Size Limit in phpMyAdmin using Xampp server?
प्रत्यावर्ती धारा से कौन दो हानियाँ होती हैं ? What are the two disadvantages of alternating current?
How Can You Choose a Reliable PHP Training Institute in Noida?
कैरेट सोना का क्या अर्थ है ? What is the meaning of karat gold?
How to Install Pear on Windows using WAMP
आयत किसे कहते हैं आयत की परिभाषा बताइए
What is local by flywheel. ? Introduce local by flywheel in Details
.prop() vs .attr()
वास्तविक तथा आभासी प्रतिबिंब में अंतर क्या है ? What is the difference between real and virtual image?
वायुमंडल किसे कहते है ? वायुमंडल के गैसों के घटक को बृत में दिखलाइये|
नई कार्तीय चिह्न परिपाटी के अनुसार गोलीय लेंस में आवर्धन किस प्रकार बदलता है ? How does the magnification change in a spherical lens according to the new Cartesian sign convention.
सह-अभाज्य संख्या किसे कहते है ?
समूह में ऊपर से नीचे की ओर जाने पर इलेक्ट्रॉन ग्रहण करने की प्रवृत्ति कैसे परिवर्तित होगी ? How will the tendency to accept electrons change as we move from top to bottom in a group?
How can I prevent SQL-injection in PHP?
Your Answer