Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Sql Sqldate Mysql Date Input

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Date Input

Advertisement
Mysql Date Input is used to give the input date and convert the input into the required format.

Mysql Date Input

     

Mysql Date Input is used to give the input date and convert the input into the required format.

Understand with Example

The Tutorial helps you to understand an example from 'Mysql Date Input'. To understand and grasp this example we use PHP tag that include the input date '3-Jan-2008' and further convert the input date into the required format date("Y-m-d|").

 

 

In this example give input the date and convert into the required format.

<?
$input = "3-Jan-2008";
$date = date("Y-m-d",strtotime($input));
?>
The input : <? echo $input; ?><br>
The output : <? echo $date; ?>

 Output :

The input : 3-Jan-2008
The output : 2008-01-03
Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: January 20, 2009

Related Tutorials

Discuss: Mysql Date Input  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com