Home Sql Sqldate Mysql Date Input



Mysql Date Input
Posted on: January 20, 2009 at 12:00 AM
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

Related Tags for Mysql Date Input:
sqlmysqlcormdateuiforminputconvertsedformatintfortorequireeputuseinrmmntintosatmyisirivandrtssthndononp


More Tutorials from this section

Ask Questions?    Discuss: Mysql Date Input  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.